6.1.4 • Published 6 months ago

@types/jest-json-schema v6.1.4

Weekly downloads
4,928
License
MIT
Repository
github
Last release
6 months ago

Installation

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

Summary

This package contains type definitions for jest-json-schema (https://github.com/americanexpress/jest-json-schema#readme).

Details

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

index.d.ts

// Type definitions for jest-json-schema 6.1
// Project: https://github.com/americanexpress/jest-json-schema#readme
// Definitions by: Matt Scheurich <https://github.com/lvl99>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.8

/// <reference types="jest" />
import * as ajv from 'ajv';

declare global {
    namespace jest {
        interface Matchers<R, T> {
            toBeValidSchema(): R;
            toMatchSchema(schema: object): R;
        }
    }
}

export const matchers: jest.ExpectExtendMap;
export type Options = ajv.Options & { AjvClass?: any };
export function matchersWithOptions(options: Options, extendAjv?: (ajv: ajv.Ajv) => void): jest.ExpectExtendMap;

Additional Details

Credits

These definitions were written by Matt Scheurich.

6.1.2

8 months ago

6.1.4

6 months ago

6.1.3

7 months ago

6.1.1

2 years ago

6.1.0

2 years ago

2.1.4

2 years ago

2.1.3

4 years ago

2.1.2

4 years ago

2.1.1

5 years ago

2.1.0

5 years ago

1.2.1

5 years ago

1.2.0

7 years ago