UNPKG

@oazmi/build-tools

Version:

general deno build tool scripts which I practically use in all of my typescript repos

13 lines 384 B
/** * Make an assertion, error will be thrown if `expr` does not have truthy value. * * @example * ```ts * import { assert } from "@std/assert/assert"; * * assert("hello".includes("ello")); // Doesn't throw * assert("hello".includes("world")); // Throws * ``` */ export declare function assert(expr: unknown, msg?: string): asserts expr; //# sourceMappingURL=assert.d.ts.map