MCPcopy
hub / github.com/angular/angular / addTripleSlashType

Function addTripleSlashType

packages/localize/schematics/ng-add/index.ts:150–155  ·  view source on GitHub ↗
(host: Tree, path: string)

Source from the content-addressed store, hash-verified

148}
149
150function addTripleSlashType(host: Tree, path: string): void {
151 const content = host.readText(path);
152 if (!content.includes(localizeTripleSlashType)) {
153 host.overwrite(path, localizeTripleSlashType + '\n\n' + content);
154 }
155}
156
157function moveToDependencies(host: Tree): Rule | void {
158 if (!host.exists('package.json')) {

Callers 1

addTypeScriptConfigTypesFunction · 0.85

Calls 1

overwriteMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…