Skip to content

Conversation

@tbouffard
Copy link
Member

Const enums prevent usage of enums in TypeScript applications/projects that enable isolatedModules.

Add a ESLint rules to prevent future introduction of const enums. Also improve the JSDoc of existing enums.

Build @maxgraph/core with the isolatedModules option enabled.

Closes #205
Closes #268

Const enums prevent usage of enums in TypeScript applications/projects that enable isolatedModules.

Add a ESLint rules to prevent future introduction of const enums.
Also improve the JSDoc of existing enums.

Build @maxgraph/core with the isolatedModules option enabled.
@tbouffard tbouffard added the bug Something isn't working label Apr 4, 2024
@tbouffard tbouffard changed the title fix: use regular enum instead of const enums fix: declare regular enum instead of const enums Apr 4, 2024
@tbouffard tbouffard changed the title fix: declare regular enum instead of const enums fix: declare regular enums instead of const enums Apr 4, 2024
@tbouffard tbouffard marked this pull request as ready for review April 4, 2024 11:31
@tbouffard tbouffard merged commit dd0acdc into main Apr 7, 2024
@tbouffard tbouffard deleted the fix/no_const_enum branch April 7, 2024 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

1 participant