MCPcopy Index your code
hub / github.com/angular/angular-cli / template

Function template

packages/angular_devkit/schematics/src/rules/template.ts:177–185  ·  view source on GitHub ↗
(options: T)

Source from the content-addressed store, hash-verified

175}
176
177export function template<T extends object>(options: T): Rule {
178 return chain([
179 contentTemplate(options),
180 // Force cast to PathTemplateData. We need the type for the actual pathTemplate() call,
181 // but in this case we cannot do anything as contentTemplate are more permissive.
182 // Since values are coerced to strings in PathTemplates it will be fine in the end.
183 pathTemplate(options as {} as PathTemplateData),
184 ]);
185}
186
187export function applyTemplates<T extends object>(options: T): Rule {
188 return forEach(

Callers 2

index.tsFile · 0.90
index.tsFile · 0.90

Calls 3

chainFunction · 0.90
contentTemplateFunction · 0.85
pathTemplateFunction · 0.85

Tested by

no test coverage detected