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

Function parseGeneric

ark/schema/generic.ts:41–46  ·  view source on GitHub ↗
(
	paramDefs: array<GenericParamDef>,
	bodyDef: unknown,
	$: BaseScope,
	alias?: string
)

Source from the content-addressed store, hash-verified

39 | readonly [name, unknown]
40
41export const parseGeneric = (
42 paramDefs: array<GenericParamDef>,
43 bodyDef: unknown,
44 $: BaseScope,
45 alias?: string
46): GenericRoot => new GenericRoot(paramDefs, bodyDef, $, $, null, alias)
47
48export type genericParamNames<params extends array<GenericParamAst>> = {
49 [i in keyof params]: params[i][0]

Callers 1

preparseEntryMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected