UNPKG

@bare-ts/lib

Version:

TypeScript library for BARE, a compact and simple binary-serialization format

18 lines (17 loc) 434 B
export { DEV } from "#dev"; /** * @throws {AssertionError} if `test` is `false`. * The message of the error is set to `message`. */ export declare function assert(test: boolean, message?: string): asserts test; /** * Indicates the failure of an assertion. * This error is thrown by {@link assert }. * * This error should not be caught. * * @sealed */ export declare class AssertionError extends Error { name: string; }