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

Function isDeclared

ark/sets/fromJsonSchema.ts:1037–1038  ·  view source on GitHub ↗
(k: string)

Source from the content-addressed store, hash-verified

1035 }
1036 })
1037 const isDeclared = (k: string) =>
1038 hasOwn(properties, k) || patterns.some(p => p.matcher.test(k))
1039 const required = (o.required ?? []) as string[]
1040 const structure = {
1041 required: [] as unknown[],

Callers 1

readObjectFunction · 0.85

Calls 2

hasOwnFunction · 0.90
testMethod · 0.80

Tested by

no test coverage detected