UNPKG

node-beget

Version:

Client library for accessing Beget API

20 lines (18 loc) 511 B
declare namespace Types { /** * set of types Record + Partial * Construct a type with a set of properties K of type T */ type RecordPartial<K extends keyof any, T> = { [P in K]?: T; }; type Except<ObjectType, KeysType extends keyof ObjectType> = Pick< ObjectType, Exclude<keyof ObjectType, KeysType> >; type Merge<FirstType, SecondType> = Except< FirstType, Extract<keyof FirstType, keyof SecondType> > & SecondType; }