Skip to content

Commit 4dc27a7

Browse files
petebacondarwinmhevery
authored andcommitted
refactor(core): rename ɵɵFactoryDef to ɵɵFactoryDeclaration (angular#41119)
Th `ɵɵFactoryDef` type will appear in published libraries, via their typings files, to describe what type dependencies a DI factory has. The parameters on this type are used by tooling such as the Language Service to understand the DI dependencies of the class being created by the factory. This commit moves the type to the `public_definitions.ts` file alongside the other types that have a similar role, and it renames it to `ɵɵFactoryDeclaration` to align it with the other declaration types such as `ɵɵDirectiveDeclaration` and so on. PR Close angular#41119
1 parent 8868370 commit 4dc27a7

File tree

58 files changed

+784
-772
lines changed

Some content is hidden

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

58 files changed

+784
-772
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,8 @@ runInEachFileSystem(() => {
774774
expect(dtsContents)
775775
.toContain(`export declare class ${exportedName} extends PlatformLocation`);
776776
// And that ngcc's modifications to that class use the correct (exported) name
777-
expect(dtsContents).toContain(`static ɵfac: ɵngcc0.ɵɵFactoryDef<${exportedName}, never>`);
777+
expect(dtsContents)
778+
.toContain(`static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<${exportedName}, never>`);
778779
});
779780

780781
it('should include constructor metadata in factory definitions', () => {
@@ -787,7 +788,7 @@ runInEachFileSystem(() => {
787788
const dtsContents = fs.readFile(_('/node_modules/@angular/common/common.d.ts'));
788789
expect(dtsContents)
789790
.toContain(
790-
`static ɵfac: ɵngcc0.ɵɵFactoryDef<NgPluralCase, [{ attribute: "ngPluralCase"; }, null, null, { host: true; }]>`);
791+
`static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<NgPluralCase, [{ attribute: "ngPluralCase"; }, null, null, { host: true; }]>`);
791792
});
792793

793794
it('should add generic type for ModuleWithProviders and generate exports for private modules',

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.ɵɵDirectiveDeclaration');
144+
'foo(x: number): number;\n static ɵfac: ɵngcc0.ɵɵFactoryDeclaration<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
@@ -59,7 +59,7 @@ const CORE_SUPPORTED_SYMBOLS = new Map<string, string>([
5959
['ɵɵdefineNgModule', 'ɵɵdefineNgModule'],
6060
['ɵɵsetNgModuleScope', 'ɵɵsetNgModuleScope'],
6161
['ɵɵinject', 'ɵɵinject'],
62-
['ɵɵFactoryDef', 'ɵɵFactoryDef'],
62+
['ɵɵFactoryDeclaration', 'ɵɵFactoryDeclaration'],
6363
['ɵsetClassMetadata', 'setClassMetadata'],
6464
['ɵɵInjectableDef', 'ɵɵInjectableDef'],
6565
['ɵɵInjectorDef', 'ɵɵInjectorDef'],

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
@@ -41,11 +41,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo
4141
****************************************************************************************************/
4242
import * as i0 from "@angular/core";
4343
export declare class HostBindingComp {
44-
static ɵfac: i0.ɵɵFactoryDef<HostBindingComp, never>;
44+
static ɵfac: i0.ɵɵFactoryDeclaration<HostBindingComp, never>;
4545
static ɵcmp: i0.ɵɵComponentDeclaration<HostBindingComp, "host-binding-comp", never, {}, {}, never, never>;
4646
}
4747
export declare class MyModule {
48-
static ɵfac: i0.ɵɵFactoryDef<MyModule, never>;
48+
static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>;
4949
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof HostBindingComp, typeof MyForwardDirective], never, never>;
5050
static ɵinj: i0.ɵɵInjectorDef<MyModule>;
5151
}
@@ -93,11 +93,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo
9393
****************************************************************************************************/
9494
import * as i0 from "@angular/core";
9595
export declare class HostBindingComp {
96-
static ɵfac: i0.ɵɵFactoryDef<HostBindingComp, never>;
96+
static ɵfac: i0.ɵɵFactoryDeclaration<HostBindingComp, never>;
9797
static ɵcmp: i0.ɵɵComponentDeclaration<HostBindingComp, "host-binding-comp", never, {}, {}, never, never>;
9898
}
9999
export declare class MyModule {
100-
static ɵfac: i0.ɵɵFactoryDef<MyModule, never>;
100+
static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>;
101101
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof HostBindingComp, typeof MyForwardPipe], never, never>;
102102
static ɵinj: i0.ɵɵInjectorDef<MyModule>;
103103
}
@@ -130,11 +130,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo
130130
****************************************************************************************************/
131131
import * as i0 from "@angular/core";
132132
export declare class SomeDirective {
133-
static ɵfac: i0.ɵɵFactoryDef<SomeDirective, never>;
133+
static ɵfac: i0.ɵɵFactoryDeclaration<SomeDirective, never>;
134134
static ɵdir: i0.ɵɵDirectiveDeclaration<SomeDirective, "[some-directive]", ["someDir", "otherDir"], {}, {}, never>;
135135
}
136136
export declare class MyModule {
137-
static ɵfac: i0.ɵɵFactoryDef<MyModule, never>;
137+
static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>;
138138
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof SomeDirective], never, never>;
139139
static ɵinj: i0.ɵɵInjectorDef<MyModule>;
140140
}
@@ -157,7 +157,7 @@ AbstractDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDE
157157
****************************************************************************************************/
158158
import * as i0 from "@angular/core";
159159
export declare class AbstractDirective {
160-
static ɵfac: i0.ɵɵFactoryDef<AbstractDirective, never>;
160+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDirective, never>;
161161
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDirective, never, never, {}, {}, never>;
162162
}
163163

@@ -203,15 +203,15 @@ import * as i0 from "@angular/core";
203203
export declare class SomeComp {
204204
prop: any;
205205
otherProp: any;
206-
static ɵfac: i0.ɵɵFactoryDef<SomeComp, never>;
206+
static ɵfac: i0.ɵɵFactoryDeclaration<SomeComp, never>;
207207
static ɵcmp: i0.ɵɵComponentDeclaration<SomeComp, "some-comp", never, { "prop": "prop"; "otherProp": "otherProp"; }, {}, never, never>;
208208
}
209209
export declare class MyApp {
210-
static ɵfac: i0.ɵɵFactoryDef<MyApp, never>;
210+
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
211211
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never>;
212212
}
213213
export declare class MyMod {
214-
static ɵfac: i0.ɵɵFactoryDef<MyMod, never>;
214+
static ɵfac: i0.ɵɵFactoryDeclaration<MyMod, never>;
215215
static ɵmod: i0.ɵɵNgModuleDeclaration<MyMod, [typeof SomeComp, typeof MyApp], never, never>;
216216
static ɵinj: i0.ɵɵInjectorDef<MyMod>;
217217
}
@@ -258,15 +258,15 @@ import * as i0 from "@angular/core";
258258
export declare class SomeComp {
259259
prop: any;
260260
otherProp: any;
261-
static ɵfac: i0.ɵɵFactoryDef<SomeComp, never>;
261+
static ɵfac: i0.ɵɵFactoryDeclaration<SomeComp, never>;
262262
static ɵcmp: i0.ɵɵComponentDeclaration<SomeComp, "some-comp", never, { "prop": "prop"; "otherProp": "otherProp"; }, {}, never, never>;
263263
}
264264
export declare class MyApp {
265-
static ɵfac: i0.ɵɵFactoryDef<MyApp, never>;
265+
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
266266
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never>;
267267
}
268268
export declare class MyMod {
269-
static ɵfac: i0.ɵɵFactoryDef<MyMod, never>;
269+
static ɵfac: i0.ɵɵFactoryDeclaration<MyMod, never>;
270270
static ɵmod: i0.ɵɵNgModuleDeclaration<MyMod, [typeof MyApp, typeof SomeComp], never, never>;
271271
static ɵinj: i0.ɵɵInjectorDef<MyMod>;
272272
}
@@ -307,11 +307,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo
307307
****************************************************************************************************/
308308
import * as i0 from "@angular/core";
309309
export declare class MyApp {
310-
static ɵfac: i0.ɵɵFactoryDef<MyApp, never>;
310+
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
311311
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never>;
312312
}
313313
export declare class MyModule {
314-
static ɵfac: i0.ɵɵFactoryDef<MyModule, never>;
314+
static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>;
315315
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyApp], never, never>;
316316
static ɵinj: i0.ɵɵInjectorDef<MyModule>;
317317
}
@@ -352,11 +352,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo
352352
****************************************************************************************************/
353353
import * as i0 from "@angular/core";
354354
export declare class MyApp {
355-
static ɵfac: i0.ɵɵFactoryDef<MyApp, never>;
355+
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
356356
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never>;
357357
}
358358
export declare class MyModule {
359-
static ɵfac: i0.ɵɵFactoryDef<MyModule, never>;
359+
static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>;
360360
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyApp], never, never>;
361361
static ɵinj: i0.ɵɵInjectorDef<MyModule>;
362362
}
@@ -401,11 +401,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo
401401
import * as i0 from "@angular/core";
402402
export declare class MyApp {
403403
getFoo(): string;
404-
static ɵfac: i0.ɵɵFactoryDef<MyApp, never>;
404+
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
405405
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "ng-component", never, {}, {}, never, never>;
406406
}
407407
export declare class MyModule {
408-
static ɵfac: i0.ɵɵFactoryDef<MyModule, never>;
408+
static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>;
409409
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyApp], never, never>;
410410
static ɵinj: i0.ɵɵInjectorDef<MyModule>;
411411
}
@@ -452,7 +452,7 @@ export { Comp };
452452
import * as i0 from "@angular/core";
453453
export declare function Custom(): (target: any) => void;
454454
export declare class Comp {
455-
static ɵfac: i0.ɵɵFactoryDef<Comp, never>;
455+
static ɵfac: i0.ɵɵFactoryDeclaration<Comp, never>;
456456
static ɵcmp: i0.ɵɵComponentDeclaration<Comp, "ng-component", never, {}, {}, never, never>;
457457
}
458458

@@ -484,11 +484,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo
484484
****************************************************************************************************/
485485
import * as i0 from "@angular/core";
486486
export declare class MyComponent {
487-
static ɵfac: i0.ɵɵFactoryDef<MyComponent, never>;
487+
static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>;
488488
static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-app", never, {}, {}, never, never>;
489489
}
490490
export declare class MyModule {
491-
static ɵfac: i0.ɵɵFactoryDef<MyModule, never>;
491+
static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>;
492492
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponent], never, never>;
493493
static ɵinj: i0.ɵɵInjectorDef<MyModule>;
494494
}

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
@@ -49,19 +49,19 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo
4949
****************************************************************************************************/
5050
import * as i0 from "@angular/core";
5151
export declare class SimpleComponent {
52-
static ɵfac: i0.ɵɵFactoryDef<SimpleComponent, never>;
52+
static ɵfac: i0.ɵɵFactoryDeclaration<SimpleComponent, never>;
5353
static ɵcmp: i0.ɵɵComponentDeclaration<SimpleComponent, "simple", never, {}, {}, never, ["*"]>;
5454
}
5555
export declare class ComplexComponent {
56-
static ɵfac: i0.ɵɵFactoryDef<ComplexComponent, never>;
56+
static ɵfac: i0.ɵɵFactoryDeclaration<ComplexComponent, never>;
5757
static ɵcmp: i0.ɵɵComponentDeclaration<ComplexComponent, "complex", never, {}, {}, never, ["span[title=toFirst]", "span[title=toSecond]"]>;
5858
}
5959
export declare class MyApp {
60-
static ɵfac: i0.ɵɵFactoryDef<MyApp, never>;
60+
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
6161
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "my-app", never, {}, {}, never, never>;
6262
}
6363
export declare class MyModule {
64-
static ɵfac: i0.ɵɵFactoryDef<MyModule, never>;
64+
static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>;
6565
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof SimpleComponent, typeof ComplexComponent, typeof MyApp], never, never>;
6666
static ɵinj: i0.ɵɵInjectorDef<MyModule>;
6767
}
@@ -244,15 +244,15 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo
244244
****************************************************************************************************/
245245
import * as i0 from "@angular/core";
246246
export declare class SimpleComponent {
247-
static ɵfac: i0.ɵɵFactoryDef<SimpleComponent, never>;
247+
static ɵfac: i0.ɵɵFactoryDeclaration<SimpleComponent, never>;
248248
static ɵcmp: i0.ɵɵComponentDeclaration<SimpleComponent, "simple", never, {}, {}, never, ["[title]"]>;
249249
}
250250
export declare class MyApp {
251-
static ɵfac: i0.ɵɵFactoryDef<MyApp, never>;
251+
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
252252
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "my-app", never, {}, {}, never, never>;
253253
}
254254
export declare class MyModule {
255-
static ɵfac: i0.ɵɵFactoryDef<MyModule, never>;
255+
static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>;
256256
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyApp, typeof SimpleComponent], never, never>;
257257
static ɵinj: i0.ɵɵInjectorDef<MyModule>;
258258
}
@@ -293,15 +293,15 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo
293293
****************************************************************************************************/
294294
import * as i0 from "@angular/core";
295295
export declare class SimpleComponent {
296-
static ɵfac: i0.ɵɵFactoryDef<SimpleComponent, never>;
296+
static ɵfac: i0.ɵɵFactoryDeclaration<SimpleComponent, never>;
297297
static ɵcmp: i0.ɵɵComponentDeclaration<SimpleComponent, "simple", never, {}, {}, never, ["[title]"]>;
298298
}
299299
export declare class MyApp {
300-
static ɵfac: i0.ɵɵFactoryDef<MyApp, never>;
300+
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
301301
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "my-app", never, {}, {}, never, never>;
302302
}
303303
export declare class MyModule {
304-
static ɵfac: i0.ɵɵFactoryDef<MyModule, never>;
304+
static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>;
305305
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof SimpleComponent, typeof MyApp], never, never>;
306306
static ɵinj: i0.ɵɵInjectorDef<MyModule>;
307307
}
@@ -329,7 +329,7 @@ MyApp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: My
329329
import * as i0 from "@angular/core";
330330
export declare class MyApp {
331331
show: boolean;
332-
static ɵfac: i0.ɵɵFactoryDef<MyApp, never>;
332+
static ɵfac: i0.ɵɵFactoryDeclaration<MyApp, never>;
333333
static ɵcmp: i0.ɵɵComponentDeclaration<MyApp, "my-app", never, {}, {}, never, never>;
334334
}
335335

@@ -352,7 +352,7 @@ SimpleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER"
352352
****************************************************************************************************/
353353
import * as i0 from "@angular/core";
354354
export declare class SimpleComponent {
355-
static ɵfac: i0.ɵɵFactoryDef<SimpleComponent, never>;
355+
static ɵfac: i0.ɵɵFactoryDeclaration<SimpleComponent, never>;
356356
static ɵcmp: i0.ɵɵComponentDeclaration<SimpleComponent, "simple", never, {}, {}, never, ["*"]>;
357357
}
358358

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo
2626
****************************************************************************************************/
2727
import * as i0 from "@angular/core";
2828
export declare class MyComponent {
29-
static ɵfac: i0.ɵɵFactoryDef<MyComponent, never>;
29+
static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>;
3030
static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never>;
3131
}
3232
export declare class MyModule {
33-
static ɵfac: i0.ɵɵFactoryDef<MyModule, never>;
33+
static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>;
3434
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponent], never, never>;
3535
static ɵinj: i0.ɵɵInjectorDef<MyModule>;
3636
}
@@ -95,15 +95,15 @@ import { TemplateRef } from '@angular/core';
9595
import * as i0 from "@angular/core";
9696
export declare class IfDirective {
9797
constructor(template: TemplateRef<any>);
98-
static ɵfac: i0.ɵɵFactoryDef<IfDirective, never>;
98+
static ɵfac: i0.ɵɵFactoryDeclaration<IfDirective, never>;
9999
static ɵdir: i0.ɵɵDirectiveDeclaration<IfDirective, "[if]", never, {}, {}, never>;
100100
}
101101
export declare class MyComponent {
102-
static ɵfac: i0.ɵɵFactoryDef<MyComponent, never>;
102+
static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>;
103103
static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never>;
104104
}
105105
export declare class MyModule {
106-
static ɵfac: i0.ɵɵFactoryDef<MyModule, never>;
106+
static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>;
107107
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof IfDirective, typeof MyComponent], never, never>;
108108
static ɵinj: i0.ɵɵInjectorDef<MyModule>;
109109
}
@@ -151,11 +151,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo
151151
****************************************************************************************************/
152152
import * as i0 from "@angular/core";
153153
export declare class MyComponent {
154-
static ɵfac: i0.ɵɵFactoryDef<MyComponent, never>;
154+
static ɵfac: i0.ɵɵFactoryDeclaration<MyComponent, never>;
155155
static ɵcmp: i0.ɵɵComponentDeclaration<MyComponent, "my-component", never, {}, {}, never, never>;
156156
}
157157
export declare class MyModule {
158-
static ɵfac: i0.ɵɵFactoryDef<MyModule, never>;
158+
static ɵfac: i0.ɵɵFactoryDeclaration<MyModule, never>;
159159
static ɵmod: i0.ɵɵNgModuleDeclaration<MyModule, [typeof MyComponent], never, never>;
160160
static ɵinj: i0.ɵɵInjectorDef<MyModule>;
161161
}
@@ -246,17 +246,17 @@ export declare class LifecycleComp {
246246
ngAfterViewInit(): void;
247247
ngAfterViewChecked(): void;
248248
ngOnDestroy(): void;
249-
static ɵfac: i0.ɵɵFactoryDef<LifecycleComp, never>;
249+
static ɵfac: i0.ɵɵFactoryDeclaration<LifecycleComp, never>;
250250
static ɵcmp: i0.ɵɵComponentDeclaration<LifecycleComp, "lifecycle-comp", never, { "nameMin": "name"; }, {}, never, never>;
251251
}
252252
export declare class SimpleLayout {
253253
name1: string;
254254
name2: string;
255-
static ɵfac: i0.ɵɵFactoryDef<SimpleLayout, never>;
255+
static ɵfac: i0.ɵɵFactoryDeclaration<SimpleLayout, never>;
256256
static ɵcmp: i0.ɵɵComponentDeclaration<SimpleLayout, "simple-layout", never, {}, {}, never, never>;
257257
}
258258
export declare class LifecycleModule {
259-
static ɵfac: i0.ɵɵFactoryDef<LifecycleModule, never>;
259+
static ɵfac: i0.ɵɵFactoryDeclaration<LifecycleModule, never>;
260260
static ɵmod: i0.ɵɵNgModuleDeclaration<LifecycleModule, [typeof LifecycleComp, typeof SimpleLayout], never, never>;
261261
static ɵinj: i0.ɵɵInjectorDef<LifecycleModule>;
262262
}

0 commit comments

Comments
 (0)