DEV Community

Discussion on: Advanced TypeScript Types cheat sheet (with examples)

Collapse
 
bbehzadi profile image
bbehzadi

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] };