MCPcopy Create free account
hub / github.com/arktypeio/arktype / isExternalIn

Function isExternalIn

ark/aot/unplugin.ts:3296–3301  ·  view source on GitHub ↗
(external: unknown, specifier: string)

Source from the content-addressed store, hash-verified

3294}
3295
3296const isExternalIn = (external: unknown, specifier: string): boolean =>
3297 typeof external === "function" ? !!external(specifier, undefined, false)
3298 : Array.isArray(external) ?
3299 external.some(option => isExternalIn(option, specifier))
3300 : external instanceof RegExp ? external.test(specifier)
3301 : external === specifier
3302
3303// what Vitest passes configureVitest, its generator experimental before Vitest 5
3304interface VitestPluginContext {

Callers 1

checkInputExternalFunction · 0.85

Calls 1

testMethod · 0.80

Tested by

no test coverage detected