mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 05:20:24 +08:00
30 lines
771 B
TypeScript
30 lines
771 B
TypeScript
// Type definitions for chai-json-schema 1.4
|
|
// Project: https://github.com/chaijs/chai-json-schema/
|
|
// Definitions by: Ulrich Heiniger <https://github.com/ulrichheiniger>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
// <reference types="node"/>
|
|
// <reference types="chai" />
|
|
import tv4 = require('tv4');
|
|
|
|
declare global {
|
|
namespace Chai {
|
|
interface Assert {
|
|
jsonSchema(value: any, schema: any, msg?: string): void;
|
|
notJsonSchema(value: any, schema: any, msg?: string): void;
|
|
}
|
|
|
|
interface LanguageChains {
|
|
jsonSchema(schema: any, msg?: string): void;
|
|
}
|
|
|
|
interface ChaiStatic {
|
|
tv4: tv4.TV4;
|
|
}
|
|
}
|
|
}
|
|
|
|
declare function chaiJsonSchema(chai: any, utils: any): void;
|
|
declare namespace chaiJsonSchema { }
|
|
export = chaiJsonSchema;
|