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
TypeScript Enums are bad, consider replacing them by plain objects for improved compatibility and efficiency.
Plain object enum example:
export const ergoTreeHeaderFlags = { sizeInclusion: 0x08, constantSegregation: 0x10 } as const; export type ErgoTreeHeaderFlag = (typeof ergoTreeHeaderFlags)[keyof typeof ergoTreeHeaderFlags];
The text was updated successfully, but these errors were encountered:
Enum Objects don't offer a good DX, since DX is a Fleet's focus, tradeoffs are acceptable
Sorry, something went wrong.
No branches or pull requests
TypeScript Enums are bad, consider replacing them by plain objects for improved compatibility and efficiency.
Plain object enum example:
The text was updated successfully, but these errors were encountered: