MCPcopy Index your code
hub / github.com/arktypeio/arktype / parseGenericParams

Method parseGenericParams

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

Source from the content-addressed store, hash-verified

253 }
254
255 parseGenericParams(
256 def: string,
257 opts: BaseParseOptions
258 ): array<GenericParamDef> {
259 return parseGenericParamName(
260 new Scanner(def),
261 [],
262 this.createParseContext({
263 ...opts,
264 def,
265 prefix: "generic"
266 })
267 )
268 }
269
270 protected normalizeRootScopeValue(resolution: unknown): unknown {
271 if (isThunk(resolution) && !hasArkKind(resolution, "generic"))

Callers 2

preparseOwnAliasEntryMethod · 0.95
constructorMethod · 0.80

Calls 1

parseGenericParamNameFunction · 0.90

Tested by

no test coverage detected