@beenotung/tslib
Version:
utils library in Typescript
12 lines (11 loc) • 501 B
TypeScript
/**
* opposite of Pick
*
* From T, pick a set of properties whose keys are not in the union K
* */
export declare type Drop<T, K extends keyof T> = {
[P in Exclude<keyof T, K>]: T[P];
};
export declare type BooleanString = 'true' | 'false';
export declare type ObjectType = 'Object' | 'Array' | 'Map' | 'Set' | 'Number' | 'Boolean' | 'String' | 'Null' | 'Undefined' | 'Function' | 'AsyncFunction' | 'Date' | 'process' | 'Uint8Array';
export declare function getObjectType(o: any): ObjectType;