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
As of Typescript 2.4 Typescript supports string enums. Use these instead of union string types for enums.
Example:
// old export type Test = "FOO" | "BAR" | "FOOBAR" // suggested export enum Test = { FOO = "FOO", BAR = "BAR", FOOBAR = "FOOBAR" }
This will allow us to import and use the enums within our apps rather than having to create an identical enum.
The text was updated successfully, but these errors were encountered:
Use TypeScript string enums
744948e
Resolves apollographql#193
Use TypeScript string enums (#247)
a87e11d
Resolves #193
Use TypeScript string enums (apollographql#247)
12e0ee8
No branches or pull requests
As of Typescript 2.4 Typescript supports string enums. Use these instead of union string types for enums.
Example:
This will allow us to import and use the enums within our apps rather than having to create an identical enum.
The text was updated successfully, but these errors were encountered: