Skip to content

Commit c59c97a

Browse files
committed
refactor(material-moment-adapter): fix strict property initialization errors
Updates the code to be compatible with strict property initialization.
1 parent 35cdaf4 commit c59c97a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/material-moment-adapter/adapter/moment-date-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export class MomentDateAdapter extends DateAdapter<Moment> {
6565
// while avoiding mutating the original object passed to us. Just calling `.locale(...)` on the
6666
// input would mutate the object.
6767

68-
private _localeData: {
68+
private _localeData!: {
6969
firstDayOfWeek: number;
7070
longMonths: string[];
7171
shortMonths: string[];

src/material-moment-adapter/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"compilerOptions": {
55
"rootDir": "..",
66
"baseUrl": ".",
7+
"strictPropertyInitialization": true,
78
"paths": {
89
"@angular/cdk/*": ["../cdk/*"],
910
"@angular/material/*": ["../material/*"],

0 commit comments

Comments
 (0)