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 Version: nightly (2.5.0-dev.20170727)
Code
type StringContains<S extends string, L extends string> = ( { [K in S]: 'true' } & { [key: string]: 'false' } )[L] type ObjectHasKey<O, L extends string> = StringContains<keyof O, L> type First<T> = ObjectHasKey<T, '0'> // eagerly resolved as 'false'
Expected behavior: Type First should be left as an indexing operation.
First
PS: origin of the issue: gcanti/typelevel-ts#8
The text was updated successfully, but these errors were encountered:
@ahejlsberg Could you have a look at this one too?
Sorry, something went wrong.
ahejlsberg
No branches or pull requests
TypeScript Version: nightly (2.5.0-dev.20170727)
Code
Expected behavior:
Type
First
should be left as an indexing operation.PS: origin of the issue: gcanti/typelevel-ts#8
The text was updated successfully, but these errors were encountered: