@types/power-assert
Advanced tools
Comparing version 1.5.11 to 1.5.12
@@ -24,2 +24,3 @@ // copy from assert external module in node.d.ts | ||
operator?: string | undefined; | ||
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type | ||
stackStartFunction?: () => void | undefined; | ||
@@ -51,2 +52,3 @@ }); | ||
}; | ||
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type | ||
function ifError(value: unknown): void | undefined; | ||
@@ -53,0 +55,0 @@ |
{ | ||
"name": "@types/power-assert", | ||
"version": "1.5.11", | ||
"version": "1.5.12", | ||
"description": "TypeScript definitions for power-assert", | ||
@@ -31,4 +31,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/power-assert", | ||
}, | ||
"typesPublisherContentHash": "264424cec286e8ecf496ef850f50824189b85734358a0e4ea10c5aa03a29877e", | ||
"typesPublisherContentHash": "d1d1c9cd56dbf31a10b05352a635176fe521a1f1e188faaf09f8065d9496e1b1", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -9,69 +9,5 @@ # Installation | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/power-assert. | ||
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/power-assert/index.d.ts) | ||
````ts | ||
// copy from assert external module in node.d.ts | ||
import { Options as EmpowerOptions } from "empower"; | ||
import { Options as PowerAssertFormatterOptions } from "power-assert-formatter"; | ||
export = assert; | ||
export as namespace assert; | ||
declare function assert(value: unknown, message?: string): void; | ||
declare namespace assert { | ||
class AssertionError implements Error { | ||
name: string; | ||
message: string; | ||
actual: unknown; | ||
expected: unknown; | ||
operator: string; | ||
generatedMessage: boolean; | ||
constructor(options?: { | ||
message?: string | undefined; | ||
actual?: unknown; | ||
expected?: unknown; | ||
operator?: string | undefined; | ||
stackStartFunction?: () => void | undefined; | ||
}); | ||
} | ||
function fail(actual?: unknown, expected?: unknown, message?: string, operator?: string): never; | ||
function ok(value: unknown, message?: string): void; | ||
function equal(actual: unknown, expected: unknown, message?: string): void; | ||
function notEqual(actual: unknown, expected: unknown, message?: string): void; | ||
function deepEqual(actual: unknown, expected: unknown, message?: string): void; | ||
function notDeepEqual(actual: unknown, expected: unknown, message?: string): void; | ||
function strictEqual(actual: unknown, expected: unknown, message?: string): void; | ||
function notStrictEqual(actual: unknown, expected: unknown, message?: string): void; | ||
function deepStrictEqual(actual: unknown, expected: unknown, message?: string): void; | ||
function notDeepStrictEqual(actual: unknown, expected: unknown, message?: string): void; | ||
const throws: { | ||
(block: () => unknown, message?: string): void; | ||
( | ||
block: () => unknown, | ||
error: (new() => object) | RegExp | ((err: unknown) => boolean), | ||
message?: string, | ||
): void; | ||
}; | ||
const doesNotThrow: { | ||
(block: () => unknown, message?: string): void; | ||
(block: () => unknown, error: (new() => object) | RegExp | ((err: any) => boolean), message?: string): void; | ||
}; | ||
function ifError(value: unknown): void | undefined; | ||
const strict: typeof assert; | ||
interface Options { | ||
assertion?: EmpowerOptions | undefined; | ||
output?: PowerAssertFormatterOptions | undefined; | ||
} | ||
function customize(options: Options): typeof assert; | ||
} | ||
```` | ||
### Additional Details | ||
* Last updated: Tue, 07 Nov 2023 09:09:39 GMT | ||
* Last updated: Wed, 22 Nov 2023 00:24:48 GMT | ||
* Dependencies: [@types/empower](https://npmjs.com/package/@types/empower), [@types/power-assert-formatter](https://npmjs.com/package/@types/power-assert-formatter) | ||
@@ -78,0 +14,0 @@ |
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
54
5398
16