Skip to content

Commit 45ca138

Browse files
docs: update extending-matchers.md (#3557)
Co-authored-by: Vladimir <[email protected]>
1 parent edad9b1 commit 45ca138

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/guide/extending-matchers.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ expect.extend({
2626
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:
2727

2828
```ts
29+
import type { Assertion, AsymmetricMatchersContaining } from 'vitest'
30+
2931
interface CustomMatchers<R = unknown> {
3032
toBeFoo(): R
3133
}

0 commit comments

Comments
 (0)