@types/chai-json-schema
TypeScript icon, indicating that this package has built-in type declarations

1.4.10 • Public • Published

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.

// <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.

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @types/chai-json-schema

    Weekly Downloads

    13,202

    Version

    1.4.10

    License

    MIT

    Unpacked Size

    3.91 kB

    Total Files

    5

    Last publish

    Collaborators

    • types