diff --git a/src/app/features/config/icon-input/icon-input.component.ts b/src/app/features/config/icon-input/icon-input.component.ts index aeb81048f..be5c83663 100644 --- a/src/app/features/config/icon-input/icon-input.component.ts +++ b/src/app/features/config/icon-input/icon-input.component.ts @@ -21,7 +21,7 @@ export class IconInputComponent extends FieldType implements return this.to.type || 'text'; } - ngOnInit(): void { + override ngOnInit(): void { this.filteredIcons$ = this.formControl.valueChanges.pipe( startWith(''), filter((searchTerm) => !!searchTerm), diff --git a/src/app/features/note/dialog-add-note/dialog-add-note.component.ts b/src/app/features/note/dialog-add-note/dialog-add-note.component.ts index 112b336b7..27032cd50 100644 --- a/src/app/features/note/dialog-add-note/dialog-add-note.component.ts +++ b/src/app/features/note/dialog-add-note/dialog-add-note.component.ts @@ -19,11 +19,11 @@ export class DialogAddNoteComponent extends DialogFullscreenMarkdownComponent implements OnDestroy { - T: typeof T = T; - data: { content: string }; + override T: typeof T = T; + override data: { content: string }; constructor( - public _matDialogRef: MatDialogRef, + public override _matDialogRef: MatDialogRef, private _noteService: NoteService, ) { const data = { content: sessionStorage.getItem(SS.NOTE_TMP) || '' }; @@ -31,7 +31,7 @@ export class DialogAddNoteComponent this.data = data; } - close(isSkipSave: boolean = false): void { + override close(isSkipSave: boolean = false): void { if (!isSkipSave && this.data.content && this.data.content.trim().length > 0) { this._noteService.add({ content: this.data.content }, true); this._clearSessionStorage(); @@ -39,7 +39,7 @@ export class DialogAddNoteComponent this._matDialogRef.close(); } - ngModelChange(val: string = this.data.content || ''): void { + override ngModelChange(val: string = this.data.content || ''): void { sessionStorage.setItem(SS.NOTE_TMP, val); } diff --git a/src/hammer-config.class.ts b/src/hammer-config.class.ts index 1549e0b01..18e115cb7 100644 --- a/src/hammer-config.class.ts +++ b/src/hammer-config.class.ts @@ -10,7 +10,7 @@ const DIRECTION_HORIZONTAL = DIRECTION_LEFT | DIRECTION_RIGHT; @Injectable({ providedIn: 'root' }) export class MyHammerConfig extends HammerGestureConfig { - overrides: { + override overrides: { [key: string]: Record; } = { swipe: { direction: DIRECTION_HORIZONTAL }, diff --git a/tsconfig.base.json b/tsconfig.base.json index 05b2b53d4..5349b8115 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -14,6 +14,7 @@ "noImplicitReturns": true, "noUnusedLocals": false, "noImplicitAny": false, + "noImplicitOverride": true, "strictPropertyInitialization": true, "target": "ES2015", "resolveJsonModule": true,