MCPcopy Create free account
hub / github.com/angular/angular / toTcbTypeParameters

Function toTcbTypeParameters

packages/compiler/test/typecheck/util.ts:409–417  ·  view source on GitHub ↗
(representations: string[])

Source from the content-addressed store, hash-verified

407}
408
409function toTcbTypeParameters(representations: string[]): TcbTypeParameter[] {
410 return representations.map((representation) => ({
411 name: representation.trim().split(/\s+/)[0],
412 representation,
413 representationWithDefault: representation.includes('=')
414 ? representation
415 : `${representation} = any`,
416 }));
417}
418
419function prepareDeclarations(
420 declarations: TestDeclaration[],

Callers 2

tcbFunction · 0.85
toDirectiveMetadataFunction · 0.85

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected