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

Function parseForeignRoot

ark/type/parser/definition.ts:189–192  ·  view source on GitHub ↗
(def: object, ctx: BaseParseContext)

Source from the content-addressed store, hash-verified

187 typeof result.then === "function"
188
189const parseForeignRoot = (def: object, ctx: BaseParseContext): BaseRoot =>
190 isStandardSchema(def) ?
191 parseStandardSchema(def as never, ctx, true)
192 : throwParseError(writeForeignArkMessage("This Type"))
193
194type StandardMorph = (v: unknown, ctx: Traversal) => unknown
195

Callers 1

parseObjectFunction · 0.85

Calls 4

isStandardSchemaFunction · 0.90
throwParseErrorFunction · 0.90
writeForeignArkMessageFunction · 0.90
parseStandardSchemaFunction · 0.85

Tested by

no test coverage detected