mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
* 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>
22 lines
726 B
TypeScript
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;
|