UNPKG

merge-anything

Version:

Merge objects & other types recursively. A simple & small integration.

13 lines (12 loc) 389 B
export {}; // type A1 = { arr: string[] } // type A2 = { arr: number[] } // type A3 = { arr: boolean[] } // type TestA = Assign<A1, [A2, A3]> // type B1 = { arr: number[] } // type B2 = { arr?: number[] } // type TestB = Assign<B1, [B2]> // import { Timestamp } from '../../test/Timestamp' // type T1 = { date: Timestamp } // type T2 = { date: Timestamp } // type TestT = Assign<T1, [T2]>