install/freeipa-webui/node_modules/@reduxjs/toolkit/src/tests/utils/CustomMatchers.d.ts
raw| 1 | import type { Assertion, AsymmetricMatchersContaining } from 'vitest' |
| 2 | |
| 3 | interface CustomMatchers<R = unknown> { |
| 4 | toMatchSequence(...matchers: Array<(arg: any) => boolean>): R |
| 5 | } |
| 6 | |
| 7 | declare module 'vitest' { |
| 8 | interface Assertion<T = any> extends CustomMatchers<T> {} |
| 9 | interface AsymmetricMatchersContaining extends CustomMatchers {} |
| 10 | } |
| 11 | |
| 12 | declare global { |
| 13 | namespace jest { |
| 14 | interface Matchers<R> extends CustomMatchers<R> {} |
| 15 | } |
| 16 | } |