diff --git a/docs/guide/extending-matchers.md b/docs/guide/extending-matchers.md index 2a9e64b06bbb..8e9974339741 100644 --- a/docs/guide/extending-matchers.md +++ b/docs/guide/extending-matchers.md @@ -26,6 +26,8 @@ expect.extend({ If you are using TypeScript, since Vitest 0.31.0 you can extend default `Assertion` interface in an ambient declaration file (e.g: `vitest.d.ts`) with the code below: ```ts +import type { Assertion, AsymmetricMatchersContaining } from 'vitest' + interface CustomMatchers { toBeFoo(): R }