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

Function lookupBuiltinProto

ark/schema/parseSchema.ts:460–463  ·  view source on GitHub ↗
(name: string, schema: unknown)

Source from the content-addressed store, hash-verified

458}
459
460const lookupBuiltinProto = (name: string, schema: unknown): Constructor =>
461 hasOwn(builtinConstructors, name) ?
462 builtinConstructors[name as BuiltinObjectKind]
463 : throwParseError(writeInvalidSchemaMessage(schema))
464
465const addConstraints = (
466 input: dict,

Callers 1

parseSchema.tsFile · 0.85

Calls 3

hasOwnFunction · 0.90
throwParseErrorFunction · 0.90

Tested by

no test coverage detected