@types/jest-json-schema
Version:
TypeScript definitions for jest-json-schema
35 lines (27 loc) • 1.18 kB
Markdown
# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jest-json-schema/index.d.ts)
````ts
/// <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
* Last updated: Tue, 07 Nov 2023 03:09:37 GMT
* Dependencies: [@types/jest](https://npmjs.com/package/@types/jest), [ajv](https://npmjs.com/package/ajv)
# Credits
These definitions were written by [Matt Scheurich](https://github.com/lvl99).