Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid const enum for Features type #564

Closed
wants to merge 1 commit into from
Closed

Avoid const enum for Features type #564

wants to merge 1 commit into from

Conversation

ArnaudBarre
Copy link
Contributor

const enum can't be used with the isolatedModules flag which is required by any compiler that is not tsc like esbuild which is used to compile the Vite config.

The proposed type described better the actual runtime code (I'm using ; because this is the default prettier format, feel free to change if that's an issue for you)

`const enum` can't be used with the [isolatedModules flag](https://www.typescriptlang.org/tsconfig#isolatedModules) which  is required by any compiler that is not tsc like esbuild which is used to compile the Vite config.

The proposed type described better the actual runtime code.
@devongovett
Copy link
Member

Thanks. Those types are generated by a script so I've gone ahead and updated that.

@ArnaudBarre ArnaudBarre deleted the features-type branch August 20, 2023 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants