Skip to content

Commit 8868370

Browse files
petebacondarwinmhevery
authored andcommitted
refactor(core): rename ...WithMeta types to ...Declaration and alias to unknown (angular#41119)
These types are only used in the generated typings files to provide information to the Angular compiler in order that it can compile code in downstream libraries and applications. This commit aliases these types to `unknown` to avoid exposing the previous alias types such as `ɵɵDirectiveDef`, which are internal to the compiler. PR Close angular#41119
1 parent f2f0eaf commit 8868370

File tree

68 files changed

+865
-855
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+865
-855
lines changed

packages/compiler-cli/ngcc/test/integration/ngcc_spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2193,7 +2193,7 @@ runInEachFileSystem(() => {
21932193
const dtsContents = fs.readFile(_(`/node_modules/test-package/index.d.ts`));
21942194
expect(dtsContents)
21952195
.toContain(
2196-
'static ɵdir: ɵngcc0.ɵɵDirectiveDefWithMeta<DerivedDir, "[base]", ["base1", "base2"], {}, {}, never>;');
2196+
'static ɵdir: ɵngcc0.ɵɵDirectiveDeclaration<DerivedDir, "[base]", ["base1", "base2"], {}, {}, never>;');
21972197
});
21982198

21992199
it('should generate a component definition with CopyDefinitionFeature for an undecorated child component',
@@ -2233,7 +2233,7 @@ runInEachFileSystem(() => {
22332233
const dtsContents = fs.readFile(_(`/node_modules/test-package/index.d.ts`));
22342234
expect(dtsContents)
22352235
.toContain(
2236-
'static ɵcmp: ɵngcc0.ɵɵComponentDefWithMeta<DerivedCmp, "[base]", never, {}, {}, never, never>;');
2236+
'static ɵcmp: ɵngcc0.ɵɵComponentDeclaration<DerivedCmp, "[base]", never, {}, {}, never, never>;');
22372237
});
22382238

22392239
it('should generate directive definitions with CopyDefinitionFeature for undecorated child directives in a long inheritance chain',
@@ -2269,13 +2269,13 @@ runInEachFileSystem(() => {
22692269
const dtsContents = fs.readFile(_(`/node_modules/test-package/index.d.ts`));
22702270
expect(dtsContents)
22712271
.toContain(
2272-
'static ɵdir: ɵngcc0.ɵɵDirectiveDefWithMeta<DerivedDir1, "[base]", never, {}, {}, never>;');
2272+
'static ɵdir: ɵngcc0.ɵɵDirectiveDeclaration<DerivedDir1, "[base]", never, {}, {}, never>;');
22732273
expect(dtsContents)
22742274
.toContain(
2275-
'static ɵdir: ɵngcc0.ɵɵDirectiveDefWithMeta<DerivedDir2, "[base]", never, {}, {}, never>;');
2275+
'static ɵdir: ɵngcc0.ɵɵDirectiveDeclaration<DerivedDir2, "[base]", never, {}, {}, never>;');
22762276
expect(dtsContents)
22772277
.toContain(
2278-
'static ɵdir: ɵngcc0.ɵɵDirectiveDefWithMeta<DerivedDir3, "[base]", never, {}, {}, never>;');
2278+
'static ɵdir: ɵngcc0.ɵɵDirectiveDeclaration<DerivedDir3, "[base]", never, {}, {}, never>;');
22792279
});
22802280
});
22812281

packages/compiler-cli/ngcc/test/rendering/dts_renderer_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ runInEachFileSystem(() => {
141141
result.find(f => f.path === _('/node_modules/test-package/typings/file.d.ts'))!;
142142
expect(typingsFile.contents)
143143
.toContain(
144-
'foo(x: number): number;\n static ɵfac: ɵngcc0.ɵɵFactoryDef<A, never>;\n static ɵdir: ɵngcc0.ɵɵDirectiveDefWithMeta');
144+
'foo(x: number): number;\n static ɵfac: ɵngcc0.ɵɵFactoryDef<A, never>;\n static ɵdir: ɵngcc0.ɵɵDirectiveDeclaration');
145145
});
146146

147147
it('should render imports into typings files', () => {

packages/compiler-cli/src/ngtsc/imports/src/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const CORE_SUPPORTED_SYMBOLS = new Map<string, string>([
6363
['ɵsetClassMetadata', 'setClassMetadata'],
6464
['ɵɵInjectableDef', 'ɵɵInjectableDef'],
6565
['ɵɵInjectorDef', 'ɵɵInjectorDef'],
66-
['ɵɵNgModuleDefWithMeta', 'ɵɵNgModuleDefWithMeta'],
66+
['ɵɵNgModuleDeclaration', 'ɵɵNgModuleDeclaration'],
6767
['ɵNgModuleFactory', 'NgModuleFactory'],
6868
['ɵnoSideEffects', 'ɵnoSideEffects'],
6969
]);

packages/compiler-cli/src/ngtsc/metadata/test/dts_spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ runInEachFileSystem(() => {
3333
3434
export declare class TestDir {
3535
constructor(p0: ViewContainerRef);
36-
static ɵdir: i0.ɵɵDirectiveDefWithMeta<TestDir, "[test]", never, {}, {}, never>
36+
static ɵdir: i0.ɵɵDirectiveDeclaration<TestDir, "[test]", never, {}, {}, never>
3737
}
3838
`
3939
}],
@@ -67,7 +67,7 @@ runInEachFileSystem(() => {
6767
6868
export declare class TestDir {
6969
constructor(p0: ViewContainerRef, p1: TemplateRef);
70-
static ɵdir: i0.ɵɵDirectiveDefWithMeta<TestDir, "[test]", never, {}, {}, never>
70+
static ɵdir: i0.ɵɵDirectiveDeclaration<TestDir, "[test]", never, {}, {}, never>
7171
}
7272
`
7373
}],

packages/compiler-cli/src/ngtsc/testing/fake_common/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {NgIterable, TemplateRef, ɵɵDirectiveDefWithMeta, ɵɵNgModuleDefWithMeta, ɵɵPipeDefWithMeta} from '@angular/core';
9+
import {NgIterable, TemplateRef, ɵɵDirectiveDeclaration, ɵɵNgModuleDeclaration, ɵɵPipeDeclaration} from '@angular/core';
1010

1111
export interface NgForOfContext<T, U extends NgIterable<T>> {
1212
$implicit: T;
@@ -36,7 +36,7 @@ export declare class NgForOf<T, U extends NgIterable<T>> {
3636
ngForTrackBy: TrackByFunction<T>;
3737
ngForTemplate: TemplateRef<NgForOfContext<T, U>>;
3838

39-
static ɵdir: ɵɵDirectiveDefWithMeta < NgForOf<any, any>, '[ngFor][ngForOf]', never, {
39+
static ɵdir: ɵɵDirectiveDeclaration < NgForOf<any, any>, '[ngFor][ngForOf]', never, {
4040
'ngForOf': 'ngForOf';
4141
'ngForTrackBy': 'ngForTrackBy';
4242
'ngForTemplate': 'ngForTemplate';
@@ -50,7 +50,7 @@ export declare class NgIf<T = unknown> {
5050
ngIf: T;
5151
ngIfThen: TemplateRef<NgIfContext<T>>|null;
5252
ngIfElse: TemplateRef<NgIfContext<T>>|null;
53-
static ɵdir: ɵɵDirectiveDefWithMeta < NgIf<any>, '[ngIf]', never, {
53+
static ɵdir: ɵɵDirectiveDeclaration < NgIf<any>, '[ngIf]', never, {
5454
'ngIf': 'ngIf';
5555
'ngIfThen': 'ngIfThen';
5656
'ngIfElse': 'ngIfElse';
@@ -64,7 +64,7 @@ export declare class NgTemplateOutlet {
6464
ngTemplateOutlet: TemplateRef<any>|null;
6565
ngTemplateOutletContext: Object|null;
6666

67-
static ɵdir: ɵɵDirectiveDefWithMeta < NgTemplateOutlet, '[ngTemplateOutlet]', never, {
67+
static ɵdir: ɵɵDirectiveDeclaration < NgTemplateOutlet, '[ngTemplateOutlet]', never, {
6868
'ngTemplateOutlet': 'ngTemplateOutlet';
6969
'ngTemplateOutletContext': 'ngTemplateOutletContext';
7070
}
@@ -80,11 +80,11 @@ export declare class DatePipe {
8080
transform(
8181
value: Date|string|number|null|undefined, format?: string, timezone?: string,
8282
locale?: string): string|null;
83-
static ɵpipe: ɵɵPipeDefWithMeta<DatePipe, 'date'>;
83+
static ɵpipe: ɵɵPipeDeclaration<DatePipe, 'date'>;
8484
}
8585

8686
export declare class CommonModule {
87-
static ɵmod: ɵɵNgModuleDefWithMeta<
87+
static ɵmod: ɵɵNgModuleDeclaration<
8888
CommonModule, [typeof NgForOf, typeof NgIf, typeof DatePipe, typeof NgTemplateOutlet], never,
8989
[typeof NgForOf, typeof NgIf, typeof DatePipe, typeof NgTemplateOutlet]>;
9090
}

packages/compiler-cli/src/ngtsc/testing/fake_core/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,10 @@ export interface SimpleChanges {
7070
[propName: string]: any;
7171
}
7272

73-
export type ɵɵNgModuleDefWithMeta<ModuleT, DeclarationsT, ImportsT, ExportsT> = any;
74-
export type ɵɵDirectiveDefWithMeta<DirT, SelectorT, ExportAsT, InputsT, OutputsT, QueriesT> = any;
75-
export type ɵɵPipeDefWithMeta<PipeT, NameT> = any;
73+
export type ɵɵNgModuleDeclaration<ModuleT, DeclarationsT, ImportsT, ExportsT> = unknown;
74+
export type ɵɵDirectiveDeclaration<DirT, SelectorT, ExportAsT, InputsT, OutputsT, QueriesT> =
75+
unknown;
76+
export type ɵɵPipeDeclaration<PipeT, NameT> = unknown;
7677

7778
export enum ViewEncapsulation {
7879
Emulated = 0,

packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/GOLDEN_PARTIAL.js

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo
4242
import * as i0 from "@angular/core";
4343
export declare class HostBindingComp {
4444
static ɵfac: i0.ɵɵFactoryDef<HostBindingComp, never>;
45-
static ɵcmp: i0.ɵɵComponentDefWithMeta<HostBindingComp, "host-binding-comp", never, {}, {}, never, never>;
45+
static ɵcmp: i0.ɵɵComponentDeclaration<HostBindingComp, "host-binding-comp", never, {}, {}, never, never>;
4646
}
4747
export declare class MyModule {
4848
static ɵfac: i0.ɵɵFactoryDef<MyModule, never>;
49-
static ɵmod: i0.ɵɵNgModuleDefWithMeta<MyModule, [typeof HostBindingComp, typeof MyForwardDirective], never, never>;
49+
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof HostBindingComp, typeof MyForwardDirective], never, never>;
5050
static ɵinj: i0.ɵɵInjectorDef<MyModule>;
5151
}
5252

@@ -94,11 +94,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo
9494
import * as i0 from "@angular/core";
9595
export declare class HostBindingComp {
9696
static ɵfac: i0.ɵɵFactoryDef<HostBindingComp, never>;
97-
static ɵcmp: i0.ɵɵComponentDefWithMeta<HostBindingComp, "host-binding-comp", never, {}, {}, never, never>;
97+
static ɵcmp: i0.ɵɵComponentDeclaration<HostBindingComp, "host-binding-comp", never, {}, {}, never, never>;
9898
}
9999
export declare class MyModule {
100100
static ɵfac: i0.ɵɵFactoryDef<MyModule, never>;
101-
static ɵmod: i0.ɵɵNgModuleDefWithMeta<MyModule, [typeof HostBindingComp, typeof MyForwardPipe], never, never>;
101+
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof HostBindingComp, typeof MyForwardPipe], never, never>;
102102
static ɵinj: i0.ɵɵInjectorDef<MyModule>;
103103
}
104104

@@ -131,11 +131,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo
131131
import * as i0 from "@angular/core";
132132
export declare class SomeDirective {
133133
static ɵfac: i0.ɵɵFactoryDef<SomeDirective, never>;
134-
static ɵdir: i0.ɵɵDirectiveDefWithMeta<SomeDirective, "[some-directive]", ["someDir", "otherDir"], {}, {}, never>;
134+
static ɵdir: i0.ɵɵDirectiveDeclaration<SomeDirective, "[some-directive]", ["someDir", "otherDir"], {}, {}, never>;
135135
}
136136
export declare class MyModule {
137137
static ɵfac: i0.ɵɵFactoryDef<MyModule, never>;
138-
static ɵmod: i0.ɵɵNgModuleDefWithMeta<MyModule, [typeof SomeDirective], never, never>;
138+
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof SomeDirective], never, never>;
139139
static ɵinj: i0.ɵɵInjectorDef<MyModule>;
140140
}
141141

@@ -158,7 +158,7 @@ AbstractDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDE
158158
import * as i0 from "@angular/core";
159159
export declare class AbstractDirective {
160160
static ɵfac: i0.ɵɵFactoryDef<AbstractDirective, never>;
161-
static ɵdir: i0.ɵɵDirectiveDefWithMeta<AbstractDirective, never, never, {}, {}, never>;
161+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDirective, never, never, {}, {}, never>;
162162
}
163163

164164
/****************************************************************************************************
@@ -204,15 +204,15 @@ export declare class SomeComp {
204204
prop: any;
205205
otherProp: any;
206206
static ɵfac: i0.ɵɵFactoryDef<SomeComp, never>;
207-
static ɵcmp: i0.ɵɵComponentDefWithMeta<SomeComp, "some-comp", never, { "prop": "prop"; "otherProp": "otherProp"; }, {}, never, never>;
207+
static ɵcmp: i0.ɵɵComponentDeclaration<SomeComp, "some-comp", never, { "prop": "prop"; "otherProp": "otherProp"; }, {}, never, never>;
208208
}
209209
export declare class MyApp {
210210
static ɵfac: i0.ɵɵFactoryDef<MyApp, never>;
211-
static ɵcmp: i0.ɵɵComponentDefWithMeta<MyApp, "ng-component", never, {}, {}, never, never>;
211+
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never>;
212212
}
213213
export declare class MyMod {
214214
static ɵfac: i0.ɵɵFactoryDef<MyMod, never>;
215-
static ɵmod: i0.ɵɵNgModuleDefWithMeta<MyMod, [typeof SomeComp, typeof MyApp], never, never>;
215+
static ɵmod: i0.ɵɵNgModuleDeclaration<MyMod, [typeof SomeComp, typeof MyApp], never, never>;
216216
static ɵinj: i0.ɵɵInjectorDef<MyMod>;
217217
}
218218

@@ -259,15 +259,15 @@ export declare class SomeComp {
259259
prop: any;
260260
otherProp: any;
261261
static ɵfac: i0.ɵɵFactoryDef<SomeComp, never>;
262-
static ɵcmp: i0.ɵɵComponentDefWithMeta<SomeComp, "some-comp", never, { "prop": "prop"; "otherProp": "otherProp"; }, {}, never, never>;
262+
static ɵcmp: i0.ɵɵComponentDeclaration<SomeComp, "some-comp", never, { "prop": "prop"; "otherProp": "otherProp"; }, {}, never, never>;
263263
}
264264
export declare class MyApp {
265265
static ɵfac: i0.ɵɵFactoryDef<MyApp, never>;
266-
static ɵcmp: i0.ɵɵComponentDefWithMeta<MyApp, "ng-component", never, {}, {}, never, never>;
266+
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never>;
267267
}
268268
export declare class MyMod {
269269
static ɵfac: i0.ɵɵFactoryDef<MyMod, never>;
270-
static ɵmod: i0.ɵɵNgModuleDefWithMeta<MyMod, [typeof MyApp, typeof SomeComp], never, never>;
270+
static ɵmod: i0.ɵɵNgModuleDeclaration<MyMod, [typeof MyApp, typeof SomeComp], never, never>;
271271
static ɵinj: i0.ɵɵInjectorDef<MyMod>;
272272
}
273273

@@ -308,11 +308,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo
308308
import * as i0 from "@angular/core";
309309
export declare class MyApp {
310310
static ɵfac: i0.ɵɵFactoryDef<MyApp, never>;
311-
static ɵcmp: i0.ɵɵComponentDefWithMeta<MyApp, "ng-component", never, {}, {}, never, never>;
311+
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never>;
312312
}
313313
export declare class MyModule {
314314
static ɵfac: i0.ɵɵFactoryDef<MyModule, never>;
315-
static ɵmod: i0.ɵɵNgModuleDefWithMeta<MyModule, [typeof MyApp], never, never>;
315+
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyApp], never, never>;
316316
static ɵinj: i0.ɵɵInjectorDef<MyModule>;
317317
}
318318

@@ -353,11 +353,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo
353353
import * as i0 from "@angular/core";
354354
export declare class MyApp {
355355
static ɵfac: i0.ɵɵFactoryDef<MyApp, never>;
356-
static ɵcmp: i0.ɵɵComponentDefWithMeta<MyApp, "ng-component", never, {}, {}, never, never>;
356+
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never>;
357357
}
358358
export declare class MyModule {
359359
static ɵfac: i0.ɵɵFactoryDef<MyModule, never>;
360-
static ɵmod: i0.ɵɵNgModuleDefWithMeta<MyModule, [typeof MyApp], never, never>;
360+
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyApp], never, never>;
361361
static ɵinj: i0.ɵɵInjectorDef<MyModule>;
362362
}
363363

@@ -402,11 +402,11 @@ import * as i0 from "@angular/core";
402402
export declare class MyApp {
403403
getFoo(): string;
404404
static ɵfac: i0.ɵɵFactoryDef<MyApp, never>;
405-
static ɵcmp: i0.ɵɵComponentDefWithMeta<MyApp, "ng-component", never, {}, {}, never, never>;
405+
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never>;
406406
}
407407
export declare class MyModule {
408408
static ɵfac: i0.ɵɵFactoryDef<MyModule, never>;
409-
static ɵmod: i0.ɵɵNgModuleDefWithMeta<MyModule, [typeof MyApp], never, never>;
409+
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyApp], never, never>;
410410
static ɵinj: i0.ɵɵInjectorDef<MyModule>;
411411
}
412412

@@ -453,7 +453,7 @@ import * as i0 from "@angular/core";
453453
export declare function Custom(): (target: any) => void;
454454
export declare class Comp {
455455
static ɵfac: i0.ɵɵFactoryDef<Comp, never>;
456-
static ɵcmp: i0.ɵɵComponentDefWithMeta<Comp, "ng-component", never, {}, {}, never, never>;
456+
static ɵcmp: i0.ɵɵComponentDeclaration<Comp, "ng-component", never, {}, {}, never, never>;
457457
}
458458

459459
/****************************************************************************************************
@@ -485,11 +485,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo
485485
import * as i0 from "@angular/core";
486486
export declare class MyComponent {
487487
static ɵfac: i0.ɵɵFactoryDef<MyComponent, never>;
488-
static ɵcmp: i0.ɵɵComponentDefWithMeta<MyComponent, "my-app", never, {}, {}, never, never>;
488+
static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-app", never, {}, {}, never, never>;
489489
}
490490
export declare class MyModule {
491491
static ɵfac: i0.ɵɵFactoryDef<MyModule, never>;
492-
static ɵmod: i0.ɵɵNgModuleDefWithMeta<MyModule, [typeof MyComponent], never, never>;
492+
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponent], never, never>;
493493
static ɵinj: i0.ɵɵInjectorDef<MyModule>;
494494
}
495495

packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/GOLDEN_PARTIAL.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,19 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo
5050
import * as i0 from "@angular/core";
5151
export declare class SimpleComponent {
5252
static ɵfac: i0.ɵɵFactoryDef<SimpleComponent, never>;
53-
static ɵcmp: i0.ɵɵComponentDefWithMeta<SimpleComponent, "simple", never, {}, {}, never, ["*"]>;
53+
static ɵcmp: i0.ɵɵComponentDeclaration<SimpleComponent, "simple", never, {}, {}, never, ["*"]>;
5454
}
5555
export declare class ComplexComponent {
5656
static ɵfac: i0.ɵɵFactoryDef<ComplexComponent, never>;
57-
static ɵcmp: i0.ɵɵComponentDefWithMeta<ComplexComponent, "complex", never, {}, {}, never, ["span[title=toFirst]", "span[title=toSecond]"]>;
57+
static ɵcmp: i0.ɵɵComponentDeclaration<ComplexComponent, "complex", never, {}, {}, never, ["span[title=toFirst]", "span[title=toSecond]"]>;
5858
}
5959
export declare class MyApp {
6060
static ɵfac: i0.ɵɵFactoryDef<MyApp, never>;
61-
static ɵcmp: i0.ɵɵComponentDefWithMeta<MyApp, "my-app", never, {}, {}, never, never>;
61+
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "my-app", never, {}, {}, never, never>;
6262
}
6363
export declare class MyModule {
6464
static ɵfac: i0.ɵɵFactoryDef<MyModule, never>;
65-
static ɵmod: i0.ɵɵNgModuleDefWithMeta<MyModule, [typeof SimpleComponent, typeof ComplexComponent, typeof MyApp], never, never>;
65+
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof SimpleComponent, typeof ComplexComponent, typeof MyApp], never, never>;
6666
static ɵinj: i0.ɵɵInjectorDef<MyModule>;
6767
}
6868

@@ -245,15 +245,15 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo
245245
import * as i0 from "@angular/core";
246246
export declare class SimpleComponent {
247247
static ɵfac: i0.ɵɵFactoryDef<SimpleComponent, never>;
248-
static ɵcmp: i0.ɵɵComponentDefWithMeta<SimpleComponent, "simple", never, {}, {}, never, ["[title]"]>;
248+
static ɵcmp: i0.ɵɵComponentDeclaration<SimpleComponent, "simple", never, {}, {}, never, ["[title]"]>;
249249
}
250250
export declare class MyApp {
251251
static ɵfac: i0.ɵɵFactoryDef<MyApp, never>;
252-
static ɵcmp: i0.ɵɵComponentDefWithMeta<MyApp, "my-app", never, {}, {}, never, never>;
252+
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "my-app", never, {}, {}, never, never>;
253253
}
254254
export declare class MyModule {
255255
static ɵfac: i0.ɵɵFactoryDef<MyModule, never>;
256-
static ɵmod: i0.ɵɵNgModuleDefWithMeta<MyModule, [typeof MyApp, typeof SimpleComponent], never, never>;
256+
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyApp, typeof SimpleComponent], never, never>;
257257
static ɵinj: i0.ɵɵInjectorDef<MyModule>;
258258
}
259259

@@ -294,15 +294,15 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo
294294
import * as i0 from "@angular/core";
295295
export declare class SimpleComponent {
296296
static ɵfac: i0.ɵɵFactoryDef<SimpleComponent, never>;
297-
static ɵcmp: i0.ɵɵComponentDefWithMeta<SimpleComponent, "simple", never, {}, {}, never, ["[title]"]>;
297+
static ɵcmp: i0.ɵɵComponentDeclaration<SimpleComponent, "simple", never, {}, {}, never, ["[title]"]>;
298298
}
299299
export declare class MyApp {
300300
static ɵfac: i0.ɵɵFactoryDef<MyApp, never>;
301-
static ɵcmp: i0.ɵɵComponentDefWithMeta<MyApp, "my-app", never, {}, {}, never, never>;
301+
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "my-app", never, {}, {}, never, never>;
302302
}
303303
export declare class MyModule {
304304
static ɵfac: i0.ɵɵFactoryDef<MyModule, never>;
305-
static ɵmod: i0.ɵɵNgModuleDefWithMeta<MyModule, [typeof SimpleComponent, typeof MyApp], never, never>;
305+
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof SimpleComponent, typeof MyApp], never, never>;
306306
static ɵinj: i0.ɵɵInjectorDef<MyModule>;
307307
}
308308

@@ -330,7 +330,7 @@ import * as i0 from "@angular/core";
330330
export declare class MyApp {
331331
show: boolean;
332332
static ɵfac: i0.ɵɵFactoryDef<MyApp, never>;
333-
static ɵcmp: i0.ɵɵComponentDefWithMeta<MyApp, "my-app", never, {}, {}, never, never>;
333+
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "my-app", never, {}, {}, never, never>;
334334
}
335335

336336
/****************************************************************************************************
@@ -353,6 +353,6 @@ SimpleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER"
353353
import * as i0 from "@angular/core";
354354
export declare class SimpleComponent {
355355
static ɵfac: i0.ɵɵFactoryDef<SimpleComponent, never>;
356-
static ɵcmp: i0.ɵɵComponentDefWithMeta<SimpleComponent, "simple", never, {}, {}, never, ["*"]>;
356+
static ɵcmp: i0.ɵɵComponentDeclaration<SimpleComponent, "simple", never, {}, {}, never, ["*"]>;
357357
}
358358

0 commit comments

Comments
 (0)