npm.io
1.4.10 • Published 2 years ago

@types/chai-json-schema

Licence
MIT
Version
1.4.10
Deps
2
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/chai-json-schema

Summary

This package contains type definitions for chai-json-schema (https://github.com/chaijs/chai-json-schema/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chai-json-schema.

index.d.ts

// <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 const chaiJsonSchema: Chai.ChaiPlugin;
declare namespace chaiJsonSchema {}
export = chaiJsonSchema;

Additional Details

Credits

These definitions were written by Ulrich Heiniger.