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

Method preparseOwn

ark/schema/scope.ts:1241–1248  ·  view source on GitHub ↗
(
		def: unknown,
		opts: BaseParseOptions
	)

Source from the content-addressed store, hash-verified

1239 }
1240
1241 protected preparseOwn(
1242 def: unknown,
1243 opts: BaseParseOptions
1244 ): BaseRoot | BaseParseContextInput {
1245 return hasArkKind(def, "root") ? def : (
1246 { ...opts, def, prefix: opts.alias ?? "schema" }
1247 )
1248 }
1249
1250 protected preparseEntry(k: string, v: unknown): AliasDefEntry {
1251 return [k, v]

Callers 3

constructorFunction · 0.45
resolveUncachedFunction · 0.45
parseDefFunction · 0.45

Calls 1

hasArkKindFunction · 0.90

Tested by

no test coverage detected