-
Notifications
You must be signed in to change notification settings - Fork 316
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
Fails on string literal union types #42
Comments
I just noticed |
It works if the enum list is separated into its own type, and fails if it's declared inline. Works: type result = "ok" | "fail" | "abort";
class MyObject {
foo: result
} Fails: class MyObject {
foo: "ok" | "fail" | "abort";
} Unfortunately, I don't know enough about the internals to know how easy of a fix this is. |
@SupernaviX if this is still an issue and you have fixed it, would you mind submitting a PR with proper tests? |
I did, you've already merged it #45 |
My bad! Thanks! |
This seems to fail when using a union of string literal types.
The error is:
The text was updated successfully, but these errors were encountered: