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

Function pluginCallLinesOf

ark/aot/pluginCalls.ts:361–372  ·  view source on GitHub ↗
(
	calls: PluginCall[],
	given: PrecompilePluginOptions
)

Source from the content-addressed store, hash-verified

359
360// e.g. "vite.config.ts:5:22 precompile.vite() sets config, so ark check does too"
361export const pluginCallLinesOf = (
362 calls: PluginCall[],
363 given: PrecompilePluginOptions
364): string[] =>
365 calls.flatMap(call => {
366 const keys = Object.keys(call.options).filter(key => !isGiven(given, key))
367 return keys.length ?
368 [
369 `${call.position} ${call.label} sets ${keys.join(", ")}, so ark check does too`
370 ]
371 : []
372 })

Callers 1

checkFunction · 0.90

Calls 2

isGivenFunction · 0.85
filterMethod · 0.80

Tested by

no test coverage detected