Collection of TypeScript type challenges with online judge
Home Page:https://tsch.js.org/
Geek Repo:Geek Repo
Github PK Tool:Github PK Tool
Flavour86 opened this issue a month ago · comments
type LookUp<T extends Record<'type', string>, K> = T extends any ? T['type'] extends K ? T : never : never