@types/assert
Advanced tools
Comparing version 1.5.1 to 1.5.2
@@ -8,3 +8,3 @@ // Type definitions for commonjs-assert 1.5 | ||
declare function assert(value: any, message?: string): void; | ||
declare function assert(value: any, message?: string): asserts value; | ||
@@ -14,17 +14,21 @@ 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 notDeepStrictEqual(actual: any, expected: any, message?: string): void; | ||
function strictEqual(actual: any, expected: any, message?: string): void; | ||
function strictEqual<T>(actual: any, expected: T, message?: string): asserts actual is T; | ||
@@ -43,3 +47,3 @@ function notStrictEqual(actual: any, expected: any, message?: string): void; | ||
function ifError(value: any): void; | ||
function ifError(value: any): asserts value is null | undefined; | ||
@@ -46,0 +50,0 @@ class AssertionError implements Error { |
{ | ||
"name": "@types/assert", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"description": "TypeScript definitions for commonjs-assert", | ||
@@ -26,5 +26,5 @@ "license": "MIT", | ||
"typesVersions": { | ||
">=3.7.0-0": { | ||
"<=3.6": { | ||
"*": [ | ||
"ts3.7/*" | ||
"ts3.6/*" | ||
] | ||
@@ -40,4 +40,4 @@ } | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "4f56198ff9414531c52daad23ada5c6af090d37a0013bedd74f36e76e28e9911", | ||
"typeScriptVersion": "3.0" | ||
"typesPublisherContentHash": "22e81543d29cedce99b156a9ed8dec1726dbd3ee8271b3f5247c7d1cb6d0a785", | ||
"typeScriptVersion": "3.1" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Tue, 23 Jun 2020 16:33:29 GMT | ||
* Last updated: Tue, 01 Sep 2020 20:30:57 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
7114