UNPKG

@hello-pangea/dnd

Version:

Beautiful and accessible drag and drop for lists with React

10 lines (9 loc) 254 B
export type RecursivePartial<T> = { [P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends (...args: any) => any ? T[P] | undefined : T[P] extends object ? RecursivePartial<T[P]> : T[P]; };