mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-18 00:46:45 +00:00
refactor: add noImplicitOverride rule
This commit is contained in:
parent
b8ef9509b7
commit
0da1a080c6
4 changed files with 8 additions and 7 deletions
|
|
@ -21,7 +21,7 @@ export class IconInputComponent extends FieldType<FormlyFieldConfig> implements
|
|||
return this.to.type || 'text';
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
override ngOnInit(): void {
|
||||
this.filteredIcons$ = this.formControl.valueChanges.pipe(
|
||||
startWith(''),
|
||||
filter((searchTerm) => !!searchTerm),
|
||||
|
|
|
|||
|
|
@ -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<DialogAddNoteComponent>,
|
||||
public override _matDialogRef: MatDialogRef<DialogAddNoteComponent>,
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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<string, unknown>;
|
||||
} = {
|
||||
swipe: { direction: DIRECTION_HORIZONTAL },
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
"noImplicitReturns": true,
|
||||
"noUnusedLocals": false,
|
||||
"noImplicitAny": false,
|
||||
"noImplicitOverride": true,
|
||||
"strictPropertyInitialization": true,
|
||||
"target": "ES2015",
|
||||
"resolveJsonModule": true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue