UNPKG

453 BTypeScriptView Raw
1/**
2 * Returns a boolean telling if value is an esm module
3 * with `export default`.
4 */
5export declare function isEsm(value: any): boolean;
6/**
7 * Returns a boolean telling if value is a primitive or object constructor.
8 */
9export declare function isPrimtiveConstructor(value: any): boolean;
10/**
11 * Raises error with a message when callback is not
12 * a function.
13 */
14export declare function ensureIsFunction(callback: Function, message: string): void;