-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dts-generator): change how enums are referenced in the generated… (
#478) feat(dts-generator): add special generation for deprecated enums To improve compatibility with existing code, deprecated enums that are aliases for new, non-deprecated enums are now generated as a re-export. - a directives file (.dtsgenrc) may now contain a map `deprecatedEnumAliases` which maps from deprecated enum name to the new name - when ESM types are generated, such deprecated enums are generated as a re-export of the new enum. A re-export preserves both, the type and the object nature of the enum. - when global types are generated, nothing changed as there's no equivalent to the re-export when using namespaces - additionally, the type alternative of using literals instead of enum values is no longer generated for the return type of a function, but it's now also generated for the type aliases, as long as they're not used as return type --------- Co-authored-by: akudev <andreas.kunz@sap.com>
- Loading branch information
1 parent
b05fbcf
commit 42fc290
Showing
15 changed files
with
498 additions
and
554 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.