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

Function typeWithParameters

packages/compiler/src/render3/util.ts:110–119  ·  view source on GitHub ↗
(type: o.Expression, numParams: number)

Source from the content-addressed store, hash-verified

108}
109
110export function typeWithParameters(type: o.Expression, numParams: number): o.ExpressionType {
111 if (numParams === 0) {
112 return o.expressionType(type);
113 }
114 const params: o.Type[] = [];
115 for (let i = 0; i < numParams; i++) {
116 params.push(o.DYNAMIC_TYPE);
117 }
118 return o.expressionType(type, undefined, params);
119}
120
121export interface R3Reference {
122 value: o.Expression;

Callers 3

createFactoryTypeFunction · 0.90
createPipeTypeFunction · 0.90

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected