UNPKG

ist

Version:

Mini assertion library

10 lines (7 loc) 278 B
declare class Failure extends Error {} declare const ist: { (a: any, b?: any, cmp?: string | ((a: any, b: any) => boolean)): void Failure: typeof Failure throws: (f: () => void, expected?: null | RegExp | string | ((error: any) => boolean)) => void } export default ist