UNPKG

416 BTypeScriptView Raw
1/**
2 * Describes function modes
3 * `sync` : Normal function
4 * `async`: Promised result
5 */
6export declare type Mode = 'sync' | 'async';
7/**
8 * Describes function parameter input
9 * `multi`: ( a, b, c ... n ) => X
10 * `list` : ([a, b, c ... n]) => X
11 */
12export declare type Input = 'multi' | 'list';
13/**
14 * Describes types that can be narrowed
15 */
16export declare type Narrowable = string | number | bigint | boolean;