We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to use this library, but an error occurred when using it and I can't use it.
import { Enum, EnumType } from 'ts-jenum'; @Enum<TestEnum>('code') export class TestEnum extends EnumType<TestEnum>() { static ONE = new TestEnum(1); static TWO = new TestEnum(2); static THREE = new TestEnum(3); static FOUR = new TestEnum(4); private constructor(readonly code: number) { super(); } }
static ONE = new TestEnum(1); ^ TypeError: undefined is not a constructor
https://stackoverflow.com/questions/48134909/typescript-class-decorator-can-not-access-static-value-if-decorator-return-as-hi
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I want to use this library,
but an error occurred when using it and I can't use it.
Environment
My Test Code
Error message
Reference link
https://stackoverflow.com/questions/48134909/typescript-class-decorator-can-not-access-static-value-if-decorator-return-as-hi
The text was updated successfully, but these errors were encountered: