UNPKG

note-graph

Version:

a generic visualization tool designed to show the structure of the document space and the relations between each doc

5 lines (4 loc) 291 B
export declare type RecursivePartial<T> = { [P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object ? RecursivePartial<T[P]> : T[P]; }; export declare const mergeObjects: <T extends object = object>(target: T, ...sources: RecursivePartial<T>[]) => T;