ts-toolbelt
Version:
TypeScript's largest utility library
17 lines (16 loc) • 416 B
TypeScript
/**
* Describes function modes
* `sync` : Normal function
* `async`: Promised result
*/
export declare type Mode = 'sync' | 'async';
/**
* Describes function parameter input
* `multi`: ( a, b, c ... n ) => X
* `list` : ([a, b, c ... n]) => X
*/
export declare type Input = 'multi' | 'list';
/**
* Describes types that can be narrowed
*/
export declare type Narrowable = string | number | bigint | boolean;