Typedoc: Type error for enums with string values

Created on 29 Nov 2017  路  4Comments  路  Source: TypeStrong/typedoc

Since TypeScript 2.4 enums can have string literal values.
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-4.html
But Typedoc fires the following message:

[11:52:16] c:/Projekte/HolterOnline/TypeScript/src/enums/DokumentTyp.ts(9)
 Type '"promotion"' is not assignable to type 'DokumentTyp'.

Content of DokumentTyp.ts is as follows:

export enum DokumentTyp {
    Aktion = "promotion",
    Katalog = "catalog",
    Preisliste = "pricelist",
    Ersatzteile = "spareparts",
    Prospekt = "flyer",
    Handbuch = "manual",
    Datenblatt = "datasheet",
    Zertifikat = "certificate",
    Werkszeugnis = "factory_certificate",
    Sicherheitsdatenblatt = "material_safety_data_sheet",
    Anleitung = "instruction",
    Leistungserkl盲rung = "declaration_of_performance",
    Pr盲sentation = "presentation",
    Sonstiges = "other"
}

TypeScript compiles without errors, but Typedoc cannot generate the documentation.
Am I doing something wrong, or is this some missing feature in Typedoc?

I'm running Typedoc in gulp via gulp-typedoc.

bug

Most helpful comment

Thank you, in 0.9.0 this issue doesn't exist.
Sorry for wasting your time. Have a nice day 馃憤

All 4 comments

Related to #599

This seems to work correctly in 0.9.0 for me, what version are you using?

Currently 0.7.2
I'm gonna update immediately

Thank you, in 0.9.0 this issue doesn't exist.
Sorry for wasting your time. Have a nice day 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nidsharm picture nidsharm  路  3Comments

cfischer picture cfischer  路  4Comments

topherfangio picture topherfangio  路  3Comments

euberdeveloper picture euberdeveloper  路  3Comments

unsafecode picture unsafecode  路  4Comments