Skip to content

Instantly share code, notes, and snippets.

View WeltonThomasFerreira's full-sized avatar
🏠
Working from home

Thom Ferreira WeltonThomasFerreira

🏠
Working from home
View GitHub Profile
@navix
navix / readme.md
Last active August 4, 2023 09:02
TypeScript Deep Partial Interface

TypeScript Deep Partial Interface

export type DeepPartial<T> = T extends Function ? T : (T extends object ? { [P in keyof T]?: DeepPartial<T[P]>; } : T);

Before typescript@3.1

type DeepPartial = {