Files
DefinitelyTyped/types/chai-json-schema/index.d.ts
2017-03-24 14:27:52 -07:00

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;