Installation
npm install --save @types/http-assert
Summary
This package contains type definitions for http-assert (https://github.com/jshttp/http-assert).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/http-assert.
declare function assert(value: any, status?: number, msg?: string, opts?: Record<string, any>): asserts value;
declare function assert(value: any, status?: number, opts?: Record<string, any>): asserts value;
declare namespace assert {
type Assert = <T>(a: T, b: T, status?: number, msg?: string, opts?: Record<string, any>) => void;
type AssertOK = (a: any, status?: number, msg?: string, opts?: Record<string, any>) => asserts a;
type AssertFail = (status?: number, msg?: string, opts?: Record<string, any>) => void;
type AssertEqual = (a: any, b: any, status?: number, msg?: string, opts?: Record<string, any>) => void;
const equal: Assert;
const notEqual: Assert;
const ok: AssertOK;
const strictEqual: AssertEqual;
const notStrictEqual: AssertEqual;
const deepEqual: AssertEqual;
const notDeepEqual: AssertEqual;
const fail: AssertFail;
}
export = assert;
Additional Details
- Last updated: Thu, 24 Oct 2024 14:35:39 GMT
- Dependencies: none
Credits
These definitions were written by jKey Lu, Peter Squicciarini, and Alex Bulanov.