From 6ebf36ec7b17ac505a41e5664fc707c4c366f53f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=91=E4=B8=8D=E9=92=92?= <1712686898@qq.com> Date: Wed, 15 Apr 2026 01:41:28 +0000 Subject: [PATCH 1/2] fix: Update Matchers interface type from 'any' to 'unknown' --- types/bun.d.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/types/bun.d.ts b/types/bun.d.ts index 676a0ac3..031723be 100644 --- a/types/bun.d.ts +++ b/types/bun.d.ts @@ -1,11 +1,10 @@ import {type expect} from 'bun:test' -import {type TestingLibraryMatchers} from './matchers' +import { type TestingLibraryMatchers } from './matchers'; -export {} declare module 'bun:test' { - interface Matchers + interface Matchers extends TestingLibraryMatchers< ReturnType, T > {} -} +} \ No newline at end of file From d97930d3ed2fc81ab332e9fcc956b2779cbce6c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=91=E4=B8=8D=E9=92=92?= <1712686898@qq.com> Date: Wed, 15 Apr 2026 02:15:33 +0000 Subject: [PATCH 2/2] fix: Remove unused import of 'expect' from bun:test --- types/bun.d.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/types/bun.d.ts b/types/bun.d.ts index 031723be..bb51022b 100644 --- a/types/bun.d.ts +++ b/types/bun.d.ts @@ -1,4 +1,3 @@ -import {type expect} from 'bun:test' import { type TestingLibraryMatchers } from './matchers'; declare module 'bun:test' {