@angular/core 16.0.0-rc.3 → 16.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.0-rc.3
2
+ * @license Angular v16.0.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -572,7 +572,6 @@ export declare interface Attribute {
572
572
  /**
573
573
  * Attribute decorator and metadata.
574
574
  *
575
- * @Annotation
576
575
  * @publicApi
577
576
  */
578
577
  export declare const Attribute: AttributeDecorator;
@@ -1062,7 +1061,7 @@ export declare interface Component extends Directive {
1062
1061
  /**
1063
1062
  * Component decorator and metadata.
1064
1063
  *
1065
- * @Annotation
1064
+
1066
1065
  * @publicApi
1067
1066
  */
1068
1067
  export declare const Component: ComponentDecorator;
@@ -1208,7 +1207,6 @@ export declare interface ComponentDecorator {
1208
1207
  * To preserve sequences of whitespace characters, use the
1209
1208
  * `ngPreserveWhitespaces` attribute.
1210
1209
  *
1211
- * @Annotation
1212
1210
  */
1213
1211
  (obj: Component): TypeDecorator;
1214
1212
  /**
@@ -1575,7 +1573,7 @@ export declare type ContentChild = Query;
1575
1573
  * ContentChild decorator and metadata.
1576
1574
  *
1577
1575
  *
1578
- * @Annotation
1576
+
1579
1577
  *
1580
1578
  * @publicApi
1581
1579
  */
@@ -1635,7 +1633,6 @@ export declare interface ContentChildDecorator {
1635
1633
  *
1636
1634
  * {@example core/di/ts/contentChild/content_child_example.ts region='Component'}
1637
1635
  *
1638
- * @Annotation
1639
1636
  */
1640
1637
  (selector: ProviderToken<unknown> | Function | string, opts?: {
1641
1638
  descendants?: boolean;
@@ -1653,7 +1650,6 @@ export declare interface ContentChildDecorator {
1653
1650
  * Type of the ContentChildren metadata.
1654
1651
  *
1655
1652
  *
1656
- * @Annotation
1657
1653
  * @publicApi
1658
1654
  */
1659
1655
  export declare type ContentChildren = Query;
@@ -1662,7 +1658,6 @@ export declare type ContentChildren = Query;
1662
1658
  * ContentChildren decorator and metadata.
1663
1659
  *
1664
1660
  *
1665
- * @Annotation
1666
1661
  * @publicApi
1667
1662
  */
1668
1663
  export declare const ContentChildren: ContentChildrenDecorator;
@@ -1733,7 +1728,6 @@ export declare interface ContentChildrenDecorator {
1733
1728
  *
1734
1729
  * {@example core/di/ts/contentChildren/content_children_example.ts region='Component'}
1735
1730
  *
1736
- * @Annotation
1737
1731
  */
1738
1732
  (selector: ProviderToken<unknown> | Function | string, opts?: {
1739
1733
  descendants?: boolean;
@@ -2369,7 +2363,6 @@ export declare abstract class DestroyRef {
2369
2363
  /**
2370
2364
  * Directive decorator and metadata.
2371
2365
  *
2372
- * @Annotation
2373
2366
  * @publicApi
2374
2367
  */
2375
2368
  export declare interface Directive {
@@ -2548,7 +2541,6 @@ export declare interface Directive {
2548
2541
  * }
2549
2542
  * ```
2550
2543
  *
2551
- * @Annotation
2552
2544
  */
2553
2545
  queries?: {
2554
2546
  [key: string]: any;
@@ -2698,7 +2690,6 @@ export declare interface DirectiveDecorator {
2698
2690
  * accessible for components outside of the NgModule.
2699
2691
  *
2700
2692
  *
2701
- * @Annotation
2702
2693
  */
2703
2694
  (obj?: Directive): TypeDecorator;
2704
2695
  /**
@@ -3555,7 +3546,7 @@ export declare interface Host {
3555
3546
  /**
3556
3547
  * Host decorator and metadata.
3557
3548
  *
3558
- * @Annotation
3549
+
3559
3550
  * @publicApi
3560
3551
  */
3561
3552
  export declare const Host: HostDecorator;
@@ -3573,7 +3564,7 @@ export declare interface HostBinding {
3573
3564
  }
3574
3565
 
3575
3566
  /**
3576
- * @Annotation
3567
+
3577
3568
  * @publicApi
3578
3569
  */
3579
3570
  export declare const HostBinding: HostBindingDecorator;
@@ -3819,7 +3810,7 @@ export declare interface HostListener {
3819
3810
  * The global target names that can be used to prefix an event name are
3820
3811
  * `document:`, `window:` and `body:`.
3821
3812
  *
3822
- * @Annotation
3813
+
3823
3814
  * @publicApi
3824
3815
  */
3825
3816
  export declare const HostListener: HostListenerDecorator;
@@ -4180,7 +4171,6 @@ export declare interface Inject {
4180
4171
  /**
4181
4172
  * Inject decorator and metadata.
4182
4173
  *
4183
- * @Annotation
4184
4174
  * @publicApi
4185
4175
  */
4186
4176
  export declare const Inject: InjectDecorator;
@@ -4264,7 +4254,6 @@ export declare interface Injectable {
4264
4254
  /**
4265
4255
  * Injectable decorator and metadata.
4266
4256
  *
4267
- * @Annotation
4268
4257
  * @publicApi
4269
4258
  */
4270
4259
  export declare const Injectable: InjectableDecorator;
@@ -4611,7 +4600,7 @@ export declare interface Input {
4611
4600
  }
4612
4601
 
4613
4602
  /**
4614
- * @Annotation
4603
+
4615
4604
  * @publicApi
4616
4605
  */
4617
4606
  export declare const Input: InputDecorator;
@@ -5771,7 +5760,6 @@ export declare interface NgModule {
5771
5760
  }
5772
5761
 
5773
5762
  /**
5774
- * @Annotation
5775
5763
  */
5776
5764
  export declare const NgModule: NgModuleDecorator;
5777
5765
 
@@ -6170,7 +6158,7 @@ export declare interface Optional {
6170
6158
  /**
6171
6159
  * Optional decorator and metadata.
6172
6160
  *
6173
- * @Annotation
6161
+
6174
6162
  * @publicApi
6175
6163
  */
6176
6164
  export declare const Optional: OptionalDecorator;
@@ -6215,7 +6203,7 @@ export declare interface Output {
6215
6203
  }
6216
6204
 
6217
6205
  /**
6218
- * @Annotation
6206
+
6219
6207
  * @publicApi
6220
6208
  */
6221
6209
  export declare const Output: OutputDecorator;
@@ -6289,7 +6277,7 @@ export declare interface Pipe {
6289
6277
  }
6290
6278
 
6291
6279
  /**
6292
- * @Annotation
6280
+
6293
6281
  * @publicApi
6294
6282
  */
6295
6283
  export declare const Pipe: PipeDecorator;
@@ -7651,7 +7639,7 @@ export declare interface Self {
7651
7639
  /**
7652
7640
  * Self decorator and metadata.
7653
7641
  *
7654
- * @Annotation
7642
+
7655
7643
  * @publicApi
7656
7644
  */
7657
7645
  export declare const Self: SelfDecorator;
@@ -7846,7 +7834,7 @@ export declare interface SkipSelf {
7846
7834
  /**
7847
7835
  * `SkipSelf` decorator and metadata.
7848
7836
  *
7849
- * @Annotation
7837
+
7850
7838
  * @publicApi
7851
7839
  */
7852
7840
  export declare const SkipSelf: SkipSelfDecorator;
@@ -9670,7 +9658,7 @@ export declare type ViewChild = Query;
9670
9658
  /**
9671
9659
  * ViewChild decorator and metadata.
9672
9660
  *
9673
- * @Annotation
9661
+
9674
9662
  * @publicApi
9675
9663
  */
9676
9664
  export declare const ViewChild: ViewChildDecorator;
@@ -9725,7 +9713,6 @@ export declare interface ViewChildDecorator {
9725
9713
  *
9726
9714
  * {@example core/di/ts/viewChild/view_child_howto.ts region='HowTo'}
9727
9715
  *
9728
- * @Annotation
9729
9716
  */
9730
9717
  (selector: ProviderToken<unknown> | Function | string, opts?: {
9731
9718
  read?: any;
@@ -9747,7 +9734,7 @@ export declare type ViewChildren = Query;
9747
9734
  /**
9748
9735
  * ViewChildren decorator and metadata.
9749
9736
  *
9750
- * @Annotation
9737
+
9751
9738
  * @publicApi
9752
9739
  */
9753
9740
  export declare const ViewChildren: ViewChildrenDecorator;
@@ -9809,7 +9796,6 @@ export declare interface ViewChildrenDecorator {
9809
9796
  *
9810
9797
  * {@example core/di/ts/viewChildren/view_children_example.ts region='Component'}
9811
9798
  *
9812
- * @Annotation
9813
9799
  */
9814
9800
  (selector: ProviderToken<unknown> | Function | string, opts?: {
9815
9801
  read?: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "16.0.0-rc.3",
3
+ "version": "16.0.0",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.0-rc.3
2
+ * @license Angular v16.0.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -28,7 +28,7 @@ export declare function takeUntilDestroyed<T>(destroyRef?: DestroyRef): MonoType
28
28
  *
29
29
  * The signal's value will be propagated into the `Observable`'s subscribers using an `effect`.
30
30
  *
31
- * `toObservable` must be called in an injection context.
31
+ * `toObservable` must be called in an injection context unless an injector is provided via options.
32
32
  *
33
33
  * @developerPreview
34
34
  */
@@ -41,7 +41,7 @@ export declare function toObservable<T>(source: Signal<T>, options?: ToObservabl
41
41
  */
42
42
  export declare interface ToObservableOptions {
43
43
  /**
44
- * The `Injector` to use when creating the effect.
44
+ * The `Injector` to use when creating the underlying `effect` which watches the signal.
45
45
  *
46
46
  * If this isn't specified, the current injection context will be used.
47
47
  */
@@ -56,16 +56,17 @@ export declare interface ToObservableOptions {
56
56
  * have the most recent value emitted by the subscription, and will throw an error if the
57
57
  * `Observable` errors.
58
58
  *
59
- * The subscription will last for the lifetime of the current injection context. That is, if
60
- * `toSignal` is called from a component context, the subscription will be cleaned up when the
61
- * component is destroyed. When called outside of a component, the current `EnvironmentInjector`'s
62
- * lifetime will be used (which is typically the lifetime of the application itself).
59
+ * Before the `Observable` emits its first value, the `Signal` will return `undefined`. To avoid
60
+ * this, either an `initialValue` can be passed or the `requireSync` option enabled.
63
61
  *
64
- * If the `Observable` does not produce a value before the `Signal` is read, the `Signal` will throw
65
- * an error. To avoid this, use a synchronous `Observable` (potentially created with the `startWith`
66
- * operator) or pass an initial value to `toSignal` as the second argument.
62
+ * By default, the subscription will be automatically cleaned up when the current injection context
63
+ * is destroyed. For example, when `toObservable` is called during the construction of a component,
64
+ * the subscription will be cleaned up when the component is destroyed. If an injection context is
65
+ * not available, an explicit `Injector` can be passed instead.
67
66
  *
68
- * `toSignal` must be called in an injection context.
67
+ * If the subscription should persist until the `Observable` itself completes, the `manualCleanup`
68
+ * option can be specified instead, which disables the automatic subscription teardown. No injection
69
+ * context is needed in this configuration as well.
69
70
  */
70
71
  export declare function toSignal<T>(source: Observable<T>): Signal<T | undefined>;
71
72
 
@@ -77,26 +78,116 @@ export declare function toSignal<T>(source: Observable<T>): Signal<T | undefined
77
78
  * have the most recent value emitted by the subscription, and will throw an error if the
78
79
  * `Observable` errors.
79
80
  *
80
- * The subscription will last for the lifetime of the current injection context. That is, if
81
- * `toSignal` is called from a component context, the subscription will be cleaned up when the
82
- * component is destroyed. When called outside of a component, the current `EnvironmentInjector`'s
83
- * lifetime will be used (which is typically the lifetime of the application itself).
81
+ * Before the `Observable` emits its first value, the `Signal` will return the configured
82
+ * `initialValue`, or `undefined` if no `initialValue` is provided. If the `Observable` is
83
+ * guaranteed to emit synchronously, then the `requireSync` option can be passed instead.
84
+ *
85
+ * By default, the subscription will be automatically cleaned up when the current injection context
86
+ * is destroyed. For example, when `toObservable` is called during the construction of a component,
87
+ * the subscription will be cleaned up when the component is destroyed. If an injection context is
88
+ * not available, an explicit `Injector` can be passed instead.
89
+ *
90
+ * If the subscription should persist until the `Observable` itself completes, the `manualCleanup`
91
+ * option can be specified instead, which disables the automatic subscription teardown. No injection
92
+ * context is needed in this configuration as well.
93
+ *
94
+ * @developerPreview
95
+ */
96
+ export declare function toSignal<T>(source: Observable<T>, options?: ToSignalOptions<undefined> & {
97
+ requireSync?: false;
98
+ }): Signal<T | undefined>;
99
+
100
+ /**
101
+ * Get the current value of an `Observable` as a reactive `Signal`.
102
+ *
103
+ * `toSignal` returns a `Signal` which provides synchronous reactive access to values produced
104
+ * by the given `Observable`, by subscribing to that `Observable`. The returned `Signal` will always
105
+ * have the most recent value emitted by the subscription, and will throw an error if the
106
+ * `Observable` errors.
84
107
  *
85
108
  * Before the `Observable` emits its first value, the `Signal` will return the configured
86
- * `initialValue`. If the `Observable` is known to produce a value before the `Signal` will be read,
87
- * `initialValue` does not need to be passed.
109
+ * `initialValue`. If the `Observable` is guaranteed to emit synchronously, then the `requireSync`
110
+ * option can be passed instead.
88
111
  *
89
- * `toSignal` must be called in an injection context.
112
+ * By default, the subscription will be automatically cleaned up when the current injection context
113
+ * is destroyed. For example, when `toObservable` is called during the construction of a component,
114
+ * the subscription will be cleaned up when the component is destroyed. If an injection context is
115
+ * not available, an explicit `Injector` can be passed instead.
116
+ *
117
+ * If the subscription should persist until the `Observable` itself completes, the `manualCleanup`
118
+ * option can be specified instead, which disables the automatic subscription teardown. No injection
119
+ * context is needed in this configuration as well.
90
120
  *
91
121
  * @developerPreview
92
122
  */
93
- export declare function toSignal<T, U extends T | null | undefined>(source: Observable<T>, options: {
123
+ export declare function toSignal<T, U extends T | null | undefined>(source: Observable<T>, options: ToSignalOptions<U> & {
94
124
  initialValue: U;
95
125
  requireSync?: false;
96
126
  }): Signal<T | U>;
97
127
 
98
- export declare function toSignal<T>(source: Observable<T>, options: {
128
+ /**
129
+ * Get the current value of an `Observable` as a reactive `Signal`.
130
+ *
131
+ * `toSignal` returns a `Signal` which provides synchronous reactive access to values produced
132
+ * by the given `Observable`, by subscribing to that `Observable`. The returned `Signal` will always
133
+ * have the most recent value emitted by the subscription, and will throw an error if the
134
+ * `Observable` errors.
135
+ *
136
+ * With `requireSync` set to `true`, `toSignal` will assert that the `Observable` produces a value
137
+ * immediately upon subscription. No `initialValue` is needed in this case, and the returned signal
138
+ * does not include an `undefined` type.
139
+ *
140
+ * By default, the subscription will be automatically cleaned up when the current injection context
141
+ * is destroyed. For example, when `toObservable` is called during the construction of a component,
142
+ * the subscription will be cleaned up when the component is destroyed. If an injection context is
143
+ * not available, an explicit `Injector` can be passed instead.
144
+ *
145
+ * If the subscription should persist until the `Observable` itself completes, the `manualCleanup`
146
+ * option can be specified instead, which disables the automatic subscription teardown. No injection
147
+ * context is needed in this configuration as well.
148
+ *
149
+ * @developerPreview
150
+ */
151
+ export declare function toSignal<T>(source: Observable<T>, options: ToSignalOptions<undefined> & {
99
152
  requireSync: true;
100
153
  }): Signal<T>;
101
154
 
155
+ /**
156
+ * Options for `toSignal`.
157
+ *
158
+ * @publicApi
159
+ */
160
+ export declare interface ToSignalOptions<T> {
161
+ /**
162
+ * Initial value for the signal produced by `toSignal`.
163
+ *
164
+ * This will be the value of the signal until the observable emits its first value.
165
+ */
166
+ initialValue?: T;
167
+ /**
168
+ * Whether to require that the observable emits synchronously when `toSignal` subscribes.
169
+ *
170
+ * If this is `true`, `toSignal` will assert that the observable produces a value immediately upon
171
+ * subscription. Setting this option removes the need to either deal with `undefined` in the
172
+ * signal type or provide an `initialValue`, at the cost of a runtime error if this requirement is
173
+ * not met.
174
+ */
175
+ requireSync?: boolean;
176
+ /**
177
+ * `Injector` which will provide the `DestroyRef` used to clean up the Observable subscription.
178
+ *
179
+ * If this is not provided, a `DestroyRef` will be retrieved from the current injection context,
180
+ * unless manual cleanup is requested.
181
+ */
182
+ injector?: Injector;
183
+ /**
184
+ * Whether the subscription should be automatically cleaned up (via `DestroyRef`) when
185
+ * `toObservable`'s creation context is destroyed.
186
+ *
187
+ * If manual cleanup is enabled, then `DestroyRef` is not used, and the subscription will persist
188
+ * until the `Observable` itself completes.
189
+ */
190
+ manualCleanup?: boolean;
191
+ }
192
+
102
193
  export { }
@@ -60,7 +60,7 @@ var __async = (__this, __arguments, generator) => {
60
60
  });
61
61
  };
62
62
 
63
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
63
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
64
64
  var guard_and_resolve_interfaces_exports = {};
65
65
  __export(guard_and_resolve_interfaces_exports, {
66
66
  default: () => guard_and_resolve_interfaces_default
@@ -69,7 +69,7 @@ module.exports = __toCommonJS(guard_and_resolve_interfaces_exports);
69
69
  var import_schematics = require("@angular-devkit/schematics");
70
70
  var import_path3 = require("path");
71
71
 
72
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
72
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
73
73
  var import_core = require("@angular-devkit/core");
74
74
  function getProjectTsConfigPaths(tree) {
75
75
  return __async(this, null, function* () {
@@ -149,11 +149,11 @@ function getWorkspace(tree) {
149
149
  });
150
150
  }
151
151
 
152
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
152
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
153
153
  var import_path = require("path");
154
154
  var import_typescript2 = __toESM(require("typescript"), 1);
155
155
 
156
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
156
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
157
157
  var path = __toESM(require("path"), 1);
158
158
  var import_typescript = __toESM(require("typescript"), 1);
159
159
  function parseTsconfigFile(tsconfigPath, basePath) {
@@ -170,7 +170,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
170
170
  return import_typescript.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
171
171
  }
172
172
 
173
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
173
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
174
174
  function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
175
175
  const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
176
176
  return import_typescript2.default.createProgram(rootNames, options, host);
@@ -203,13 +203,13 @@ function canMigrateFile(basePath, sourceFile, program) {
203
203
  return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
204
204
  }
205
205
 
206
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
206
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
207
207
  var import_typescript7 = __toESM(require("typescript"), 1);
208
208
 
209
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
209
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
210
210
  var import_typescript4 = __toESM(require("typescript"), 1);
211
211
 
212
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
212
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
213
213
  var import_path2 = require("path");
214
214
  var import_typescript3 = __toESM(require("typescript"), 1);
215
215
  var ImportManager = class {
@@ -393,7 +393,7 @@ ${text}`;
393
393
  }
394
394
  };
395
395
 
396
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
396
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
397
397
  var ChangeTracker = class {
398
398
  constructor(_printer, _importRemapper) {
399
399
  __publicField(this, "_printer");
@@ -449,7 +449,7 @@ function normalizePath(path2) {
449
449
  return path2.replace(/\\/g, "/");
450
450
  }
451
451
 
452
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
452
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
453
453
  var import_typescript5 = __toESM(require("typescript"), 1);
454
454
  function getImportOfIdentifier(typeChecker, node) {
455
455
  const symbol = typeChecker.getSymbolAtLocation(node);
@@ -521,7 +521,7 @@ function findImportSpecifier(nodes, specifierName) {
521
521
  });
522
522
  }
523
523
 
524
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
524
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
525
525
  var import_typescript6 = __toESM(require("typescript"), 1);
526
526
  function closestNode(node, predicate) {
527
527
  let current = node.parent;
@@ -534,7 +534,7 @@ function closestNode(node, predicate) {
534
534
  return null;
535
535
  }
536
536
 
537
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
537
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
538
538
  var deprecatedInterfaces = /* @__PURE__ */ new Set(["CanLoad", "CanMatch", "CanActivate", "CanDeactivate", "CanActivateChild", "Resolve"]);
539
539
  var routerModule = "@angular/router";
540
540
  function migrateFile(sourceFile, typeChecker, rewriteFn) {
@@ -647,7 +647,7 @@ function visitTypeReference(typeReference, typeChecker, changeTracker, sourceFil
647
647
  import_typescript7.default.forEachChild(typeReference, visitTypeReferenceChildren);
648
648
  }
649
649
 
650
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
650
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
651
651
  function guard_and_resolve_interfaces_default() {
652
652
  return (tree) => __async(this, null, function* () {
653
653
  const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);
@@ -56,7 +56,7 @@ var __async = (__this, __arguments, generator) => {
56
56
  });
57
57
  };
58
58
 
59
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
59
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
60
60
  var remove_module_id_exports = {};
61
61
  __export(remove_module_id_exports, {
62
62
  default: () => remove_module_id_default
@@ -66,13 +66,13 @@ var import_schematics = require("@angular-devkit/schematics");
66
66
  var import_path2 = require("path");
67
67
  var import_typescript8 = __toESM(require("typescript"), 1);
68
68
 
69
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
69
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
70
70
  var import_typescript4 = __toESM(require("typescript"), 1);
71
71
 
72
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
72
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
73
73
  var import_typescript2 = __toESM(require("typescript"), 1);
74
74
 
75
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
75
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
76
76
  var import_typescript = __toESM(require("typescript"), 1);
77
77
  function getImportOfIdentifier(typeChecker, node) {
78
78
  const symbol = typeChecker.getSymbolAtLocation(node);
@@ -94,7 +94,7 @@ function getImportOfIdentifier(typeChecker, node) {
94
94
  };
95
95
  }
96
96
 
97
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
97
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
98
98
  function getCallDecoratorImport(typeChecker, decorator) {
99
99
  if (!import_typescript2.default.isCallExpression(decorator.expression) || !import_typescript2.default.isIdentifier(decorator.expression.expression)) {
100
100
  return null;
@@ -103,7 +103,7 @@ function getCallDecoratorImport(typeChecker, decorator) {
103
103
  return getImportOfIdentifier(typeChecker, identifier);
104
104
  }
105
105
 
106
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
106
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
107
107
  function getAngularDecorators(typeChecker, decorators) {
108
108
  return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
109
109
  node,
@@ -113,7 +113,7 @@ function getAngularDecorators(typeChecker, decorators) {
113
113
  }));
114
114
  }
115
115
 
116
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/functions.mjs
116
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/functions.mjs
117
117
  var import_typescript3 = __toESM(require("typescript"), 1);
118
118
  function unwrapExpression(node) {
119
119
  if (import_typescript3.default.isParenthesizedExpression(node) || import_typescript3.default.isAsExpression(node)) {
@@ -123,7 +123,7 @@ function unwrapExpression(node) {
123
123
  }
124
124
  }
125
125
 
126
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
126
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
127
127
  function extractAngularClassMetadata(typeChecker, node) {
128
128
  const decorators = import_typescript4.default.getDecorators(node);
129
129
  if (!decorators || !decorators.length) {
@@ -150,7 +150,7 @@ function extractAngularClassMetadata(typeChecker, node) {
150
150
  };
151
151
  }
152
152
 
153
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
153
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
154
154
  var import_core = require("@angular-devkit/core");
155
155
  function getProjectTsConfigPaths(tree) {
156
156
  return __async(this, null, function* () {
@@ -230,11 +230,11 @@ function getWorkspace(tree) {
230
230
  });
231
231
  }
232
232
 
233
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
233
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
234
234
  var import_path = require("path");
235
235
  var import_typescript6 = __toESM(require("typescript"), 1);
236
236
 
237
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
237
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
238
238
  var path = __toESM(require("path"), 1);
239
239
  var import_typescript5 = __toESM(require("typescript"), 1);
240
240
  function parseTsconfigFile(tsconfigPath, basePath) {
@@ -251,7 +251,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
251
251
  return import_typescript5.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
252
252
  }
253
253
 
254
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
254
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
255
255
  function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
256
256
  const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
257
257
  return import_typescript6.default.createProgram(rootNames, options, host);
@@ -284,7 +284,7 @@ function canMigrateFile(basePath, sourceFile, program) {
284
284
  return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
285
285
  }
286
286
 
287
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/property_name.mjs
287
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/utils/typescript/property_name.mjs
288
288
  var import_typescript7 = __toESM(require("typescript"), 1);
289
289
  function getPropertyNameText(node) {
290
290
  if (import_typescript7.default.isIdentifier(node) || import_typescript7.default.isStringLiteralLike(node)) {
@@ -293,7 +293,7 @@ function getPropertyNameText(node) {
293
293
  return null;
294
294
  }
295
295
 
296
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
296
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
297
297
  function remove_module_id_default() {
298
298
  return (tree) => __async(this, null, function* () {
299
299
  const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);