What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2021-11-05 03:15:21
typescript use object keys as index
{ [key in keyof IUser]: boolean } Add solution -
TypeScript 2021-09-20 21:27:03
deep partial typescript
//You can simply create a new type, say, DeepPartial, which basically references itself: type DeepPartial<T> = { [P in keyof T]?: DeepPartial<T[P]>; }; //Then, you can use it as such: const foobar: DeepPartial<Foobar> = { foo: 1, ... Add solution