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

Method parseGenericParams

ark/type/scope.ts:622–635  ·  view source on GitHub ↗
(
		def: string,
		opts: BaseParseOptions
	)

Source from the content-addressed store, hash-verified

620 }
621
622 parseGenericParams(
623 def: string,
624 opts: BaseParseOptions
625 ): array<GenericParamDef> {
626 return parseGenericParamName(
627 new Scanner(def),
628 [],
629 this.createParseCtx({
630 ...opts,
631 def,
632 prefix: "generic"
633 })
634 )
635 }
636
637 protected normValue(resolution: unknown): unknown {
638 if (isThunk(resolution) && !hasArkKind(resolution, "generic"))

Callers 2

preparseEntryMethod · 0.95
constructorMethod · 0.80

Calls 1

parseGenericParamNameFunction · 0.90

Tested by

no test coverage detected