UNPKG

@types/assertsharp

Version:
39 lines (33 loc) 1.55 kB
# Installation > `npm install --save @types/assertsharp` # Summary This package contains type definitions for assertsharp (https://www.npmjs.com/package/assertsharp). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/assertsharp. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/assertsharp/index.d.ts) ````ts export default class Assert { static AreEqual<T>(expected: T, actual: T, message?: string): void; static AreNotEqual<T>(notExpected: T, actual: T, message?: string): void; static AreNotSame<T>(notExpected: T, actual: T, message?: string): void; static AreSequenceEqual<T>( expected: T[], actual: T[], equals?: (x: any, y: any) => boolean, message?: string, ): void; static Fail(message?: string): void; static IsFalse(actual: boolean, message?: string): void; static IsInstanceOfType(actual: any, expectedType: Function, message?: string): void; static IsNotInstanceOfType(actual: any, wrongType: Function, message?: string): void; static IsNotNull(actual: any, message?: string): void; static IsNull(actual: any, message?: string): void; static IsTrue(actual: boolean, message?: string): void; static Throws(fn: () => void, message?: string): void; } ```` ### Additional Details * Last updated: Mon, 06 Nov 2023 22:41:04 GMT * Dependencies: none # Credits These definitions were written by [Bruno Leonardo Michels](https://github.com/brunolm).