Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(typescript): allow generic names starting with "K" (#116)
We accept only generic type names starting with "T" but sometimes, accepting "K" also makes sense. This is the case when using the TypeScript keyword `keyof`: ```ts type StateToWidgets = { [KParameter in keyof IndexUiState]: Array<Widget['$$type']>; }; ``` See https://www.typescriptlang.org/docs/handbook/release-n otes/typescript-2-1.html#example
- Loading branch information