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

Function isObjectCheck

ark/type/standalone/combinators.ts:581–590  ·  view source on GitHub ↗
(node: BaseNode)

Source from the content-addressed store, hash-verified

579
580// a basis props check as they would
581const isObjectCheck = (node: BaseNode): boolean => {
582 const site = checkOf(node)!
583 return (
584 node.is("domain") &&
585 node.domain === "object" &&
586 site.message === undefined &&
587 site.code === runtime.objectCheck.code &&
588 site.description === runtime.objectCheck.description
589 )
590}
591
592const writeCheck = (js: CombinatorCompiler, node: BaseNode): string => {
593 const { message } = checkOf(node)!

Callers 1

Calls 2

checkOfFunction · 0.85
isMethod · 0.80

Tested by

no test coverage detected