File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ expect.extend({
2626If you are using TypeScript, 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'
29+ import ' vitest'
3030
3131interface CustomMatchers <R = unknown > {
3232 toBeFoo: () => R
@@ -45,7 +45,7 @@ Don't forget to include the ambient declaration file in your `tsconfig.json`.
4545The return value of a matcher should be compatible with the following interface:
4646
4747``` ts
48- interface MatcherResult {
48+ interface ExpectationResult {
4949 pass: boolean
5050 message: () => string
5151 // If you pass these, they will automatically appear inside a diff when
You can’t perform that action at this time.
0 commit comments