Skip to content

Commit 376cb66

Browse files
alan-agius4josephperrott
authored andcommitted
build: enable strictMetadataEmit everywhere (#11080)
1 parent dd2f465 commit 376cb66

File tree

80 files changed

+179
-117
lines changed

Some content is hidden

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

80 files changed

+179
-117
lines changed

src/cdk-experimental/dialog/tsconfig-build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
],
77
"angularCompilerOptions": {
88
"annotateForClosureCompiler": true,
9-
"strictMetadataEmit": false, // Workaround for Angular #22210
9+
"strictMetadataEmit": true,
1010
"flatModuleOutFile": "index.js",
1111
"flatModuleId": "@angular/cdk-experimental/dialog",
1212
"skipTemplateCodegen": true,

src/cdk-experimental/tsconfig-build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
],
3333
"angularCompilerOptions": {
3434
"annotateForClosureCompiler": true,
35-
"strictMetadataEmit": false, // Workaround for Angular #22210
35+
"strictMetadataEmit": true,
3636
"flatModuleOutFile": "index.js",
3737
"flatModuleId": "@angular/cdk-experimental",
3838
"skipTemplateCodegen": true

src/cdk-experimental/tsconfig-tests.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"types": ["jasmine"]
1111
},
1212
"angularCompilerOptions": {
13-
"strictMetadataEmit": false, // Workaround for Angular #22210
13+
"strictMetadataEmit": true,
1414
"skipTemplateCodegen": true,
1515
"emitDecoratorMetadata": true
1616
},

src/cdk/a11y/live-announcer/live-announcer-token.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,10 @@ import {InjectionToken} from '@angular/core';
1414
export const LIVE_ANNOUNCER_ELEMENT_TOKEN =
1515
new InjectionToken<HTMLElement | null>('liveAnnouncerElement', {
1616
providedIn: 'root',
17-
factory: () => null,
17+
factory: LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY,
1818
});
19+
20+
/** @docs-private */
21+
export function LIVE_ANNOUNCER_ELEMENT_TOKEN_FACTORY(): null {
22+
return null;
23+
}

src/cdk/a11y/tsconfig-build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
],
66
"angularCompilerOptions": {
77
"annotateForClosureCompiler": true,
8-
"strictMetadataEmit": false, // Workaround for Angular #22210
8+
"strictMetadataEmit": true,
99
"flatModuleOutFile": "index.js",
1010
"flatModuleId": "@angular/cdk/a11y",
1111
"skipTemplateCodegen": true,

src/cdk/accordion/tsconfig-build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
],
66
"angularCompilerOptions": {
77
"annotateForClosureCompiler": true,
8-
"strictMetadataEmit": false, // Workaround for Angular #22210
8+
"strictMetadataEmit": true,
99
"flatModuleOutFile": "index.js",
1010
"flatModuleId": "@angular/cdk/accordion",
1111
"skipTemplateCodegen": true,

src/cdk/bidi/dir-document-token.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,10 @@ import {inject, InjectionToken} from '@angular/core';
2727
*/
2828
export const DIR_DOCUMENT = new InjectionToken<Document>('cdk-dir-doc', {
2929
providedIn: 'root',
30-
factory: () => inject(DOCUMENT),
30+
factory: DIR_DOCUMENT_FACTORY,
3131
});
32+
33+
/** @docs-private */
34+
export function DIR_DOCUMENT_FACTORY(): Document {
35+
return inject(DOCUMENT);
36+
}

src/cdk/bidi/tsconfig-build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
],
66
"angularCompilerOptions": {
77
"annotateForClosureCompiler": true,
8-
"strictMetadataEmit": false, // Workaround for Angular #22210
8+
"strictMetadataEmit": true,
99
"flatModuleOutFile": "index.js",
1010
"flatModuleId": "@angular/cdk/bidi",
1111
"skipTemplateCodegen": true,

src/cdk/coercion/tsconfig-build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
],
66
"angularCompilerOptions": {
77
"annotateForClosureCompiler": true,
8-
"strictMetadataEmit": false, // Workaround for Angular #22210
8+
"strictMetadataEmit": true,
99
"flatModuleOutFile": "index.js",
1010
"flatModuleId": "@angular/cdk/coercion",
1111
"skipTemplateCodegen": true,

src/cdk/collections/tsconfig-build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
],
66
"angularCompilerOptions": {
77
"annotateForClosureCompiler": true,
8-
"strictMetadataEmit": false, // Workaround for Angular #22210
8+
"strictMetadataEmit": true,
99
"flatModuleOutFile": "index.js",
1010
"flatModuleId": "@angular/cdk/collections",
1111
"skipTemplateCodegen": true,

0 commit comments

Comments
 (0)