mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-03 12:00:40 +08:00
add power-assert/power-assert.d.ts
This commit is contained in:
1 parent
b292ad3456
commit
f399dcd26a
2 files changed
+75
-1
No files matched your search
Vendored
+10
@@ -5,6 +5,9 @@
|
||||
|
||||
// copy from assert external module in node.d.ts
|
||||
|
||||
/// <reference path="../empower/empower.d.ts" />
|
||||
/// <reference path="../power-assert-formatter/power-assert-formatter.d.ts" />
|
||||
|
||||
declare function assert(value:any, message?:string):void;
|
||||
declare module assert {
|
||||
export class AssertionError implements Error {
|
||||
@@ -49,6 +52,13 @@ declare module assert {
|
||||
};
|
||||
|
||||
export function ifError(value:any):void;
|
||||
|
||||
export interface Options {
|
||||
assertion?: empower.Options;
|
||||
output?: powerAssertFormatter.Options;
|
||||
}
|
||||
|
||||
export function customize(options:Options):typeof assert;
|
||||
}
|
||||
|
||||
declare module "power-assert" {
|
||||
|
||||
Reference in new issue
Block a user