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