assert-options
Version:
Generic options parameter handling.
11 lines (10 loc) • 345 B
TypeScript
import { IOptionsErrorHandler } from './handler';
import { AssertFunc } from './types';
/**
* Creates an options-assert function that uses specified error handler.
*/
export declare function createAssert(errHandler: IOptionsErrorHandler): AssertFunc;
/**
* Default options-assert function.
*/
export declare const assertOptions: AssertFunc;