If the types has been defined through declaration merging, enforce it. Otherwise enforce the generic custom matcher signature.
bun:test ExpectExtendMatchers TypeScript type alias | API Reference | Bun BuildDocsReferenceGuidesBlogDiscord/bun:test/ExpectExtendMatchersTExpectExtendMatchers BuildDocsReferenceGuidesBlogDiscord /bun:test/ExpectExtendMatchersTExpectExtendMatchers test.ExpectExtendMatcherstype ExpectExtendMatchersM> = { [K in keyof M]: k extends keyof CustomMatchersDetected ? CustomMatcherunknown, ParametersCustomMatchersDetected[k]>> : CustomMatcherunknown, any[]> }
Search the reference...
/
type
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →bun:test ExpectExtendMatchers TypeScript type alias | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- If the types has been defined through declaration merging, enforce it.
Otherwise enforce the generic custom matcher signature.