From 45ca13802cb3dcdea71b9fe9d137df004572be0b Mon Sep 17 00:00:00 2001 From: sagargurtu Date: Tue, 20 Jun 2023 03:44:37 -0700 Subject: [PATCH] docs: update extending-matchers.md (#3557) Co-authored-by: Vladimir --- docs/guide/extending-matchers.md | 2 ++ 1 file changed, 2 insertions(+) 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 }