17 lines
431 B
Plaintext
17 lines
431 B
Plaintext
import type { Assertion, AsymmetricMatchersContaining } from 'vitest'
|
|
|
|
interface CustomMatchers<R = unknown> {
|
|
toMatchSequence(...matchers: Array<(arg: any) => boolean>): R
|
|
}
|
|
|
|
declare module 'vitest' {
|
|
interface Assertion<T = any> extends CustomMatchers<T> {}
|
|
interface AsymmetricMatchersContaining extends CustomMatchers {}
|
|
}
|
|
|
|
declare global {
|
|
namespace jest {
|
|
interface Matchers<R> extends CustomMatchers<R> {}
|
|
}
|
|
}
|