@seriousme/opifex
Version:
MQTT client & server for Deno & NodeJS
10 lines • 566 B
TypeScript
export declare class AssertionError extends Error {
/** Constructs a new instance. */
constructor(message: string);
}
/** assert(expr, msg) throws AssertionError if expr is falsy. */
export declare function assert(expr: unknown, msg?: string): asserts expr;
/** An array-like object (`Array`, `Uint8Array`, `NodeList`, etc.) that is not a string */
export type ArrayLikeArg<T> = ArrayLike<T> & object;
export declare function assertArrayIncludes<T>(actual: ArrayLikeArg<T>, expected: ArrayLikeArg<T>, msg?: string): void;
//# sourceMappingURL=assert.d.ts.map