Spike

Results 3 comments of Spike

```typescript type Map = { 'A': 'a' 'B': 'b' 'C': 'c' 'D': 'd' 'E': 'e' 'F': 'f' 'G': 'g' 'H': 'h' 'I': 'i' } type KebabCase = U extends `${infer...

@kylvia works for me, thank you~

`K extends keyof T` 这里不太理解 extends 的作用,以为 extends 只能用于扩展 interface,而在这里的作用其实是限制泛型。 参考 StackOverflow 回答: [In TypeScript, what do "extends keyof" and "in keyof" mean?](https://stackoverflow.com/questions/57337598/in-typescript-what-do-extends-keyof-and-in-keyof-mean)