Files
Michael Kriese e7c664fcae 🤖 Merge PR #60832 fix(@jest/types): align jest v28 dependencies (requires typescript bump to v4.5) by @viceice
* chore: use jest v28 deps

* chore: raise ts version

* chore: update ts to 4.5

`@sinclair/typebox` needs this

* chore: bump ts

* chore: bump ts version

* chore: bump ts

* chore: lower ts to 4.3

Co-authored-by: Simen Bekkhus <sbekkhus91@gmail.com>

* fix: align minimum ts version with readme

Co-authored-by: Simen Bekkhus <sbekkhus91@gmail.com>
2022-06-17 04:47:26 -07:00

22 lines
726 B
TypeScript

// 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
// Minimum TypeScript Version: 4.3
/// <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;