UNPKG

build-function

Version:

The way to describe and build simple functions using JSON

8 lines (7 loc) 500 B
export declare function error(msg: string): Error; export declare function errorFmt<F extends (...params: any[]) => Error>(template: string): F; export declare const errorInvalid: (obj: any, what: string) => Error; export declare const errorInvalidType: (obj: any, what: string) => Error; export declare const errorNotInEnv: (id: string) => Error; export declare const errorExpReq: (key: string, type: string) => Error; export declare const errorStmnReq: (key: string, type: string) => Error;