@types/assert
Advanced tools
Comparing version 1.4.3 to 1.4.4
@@ -6,4 +6,5 @@ // Type definitions for commonjs-assert 1.4 | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 3.7 | ||
declare function assert(value: any, message?: string): void; | ||
declare function assert(value: any, message?: string): asserts value; | ||
@@ -13,16 +14,22 @@ declare namespace assert { | ||
function ok(value: any, message?: string): void; | ||
function ok(value: any, message?: string): asserts value; | ||
/** @deprecated Use `strictEqual` instead */ | ||
function equal(actual: any, expected: any, message?: string): void; | ||
/** @deprecated Use `notStrictEqual` instead */ | ||
function notEqual(actual: any, expected: any, message?: string): void; | ||
/** @deprecated Use `deepStrictEqual` instead */ | ||
function deepEqual(actual: any, expected: any, message?: string): void; | ||
/** @deprecated Use `notDeepStrictEqual` instead */ | ||
function notDeepEqual(actual: any, expected: any, message?: string): void; | ||
function deepStrictEqual(actual: any, expected: any, message?: string): void; | ||
function deepStrictEqual<T>(actual: any, expected: T, message?: string): asserts actual is T; | ||
function strictEqual(actual: any, expected: any, message?: string): void; | ||
function notDeepStrictEqual(actual: any, expected: any, message?: string): void; | ||
function strictEqual<T>(actual: any, expected: T, message?: string): asserts actual is T; | ||
function notStrictEqual(actual: any, expected: any, message?: string): void; | ||
@@ -36,3 +43,3 @@ | ||
function ifError(value: any): void; | ||
function ifError(value: any): asserts value is null | undefined; | ||
@@ -39,0 +46,0 @@ class AssertionError implements Error { |
{ | ||
"name": "@types/assert", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"description": "TypeScript definitions for commonjs-assert", | ||
@@ -19,3 +19,3 @@ "license": "MIT", | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -28,4 +28,4 @@ "type": "git", | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "d983916ba5bd8c25d68337e70af7f3cae4aac478101beecdead28b93a0a13549", | ||
"typeScriptVersion": "2.0" | ||
"typesPublisherContentHash": "e38dbbd31d215f8271c72142f97348be01e76ae8485fffd11b61c8cbfd852e93", | ||
"typeScriptVersion": "3.7" | ||
} |
@@ -8,6 +8,6 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/assert | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/assert. | ||
Additional Details | ||
* Last updated: Thu, 25 Jul 2019 18:51:47 GMT | ||
### Additional Details | ||
* Last updated: Sat, 25 Jan 2020 01:11:25 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Nico Gallinal <https://github.com/nicoabie>, and Linus Unnebäck <https://github.com/LinusU>. | ||
These definitions were written by Nico Gallinal (https://github.com/nicoabie), and Linus Unnebäck (https://github.com/LinusU). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4897
38