loading...

re: Advanced TypeScript Types cheat sheet (with examples) VIEW POST

FULL DISCUSSION
 

Good article, to the point and concise with good examples.

I wish I knew Partial<T> - that I just learnt here before. This is how I implemented it:

export type ObjectWithOptionalProps<T> = { [key in keyof T]?: T[key] };
code of conduct - report abuse