UNPKG

@toreda/types

Version:

Common mappings, aliases, and types used in Toreda TypeScript packages.

6 lines (5 loc) 218 B
import type { Expand } from '../expand'; import type { Primitive } from '../primitive'; export declare type DeepPartial<T> = Expand<{ [key in keyof T]?: T[key] extends Primitive ? T[key] : DeepPartial<T[key]>; }>;