Added type hints #246

This commit is contained in:
Sven Heidemann 2023-03-12 18:46:39 +01:00
parent b1a0115e8b
commit efba1a4ce8

View File

@ -11,15 +11,15 @@ export class HistoryBtnComponent implements OnInit {
@Input() history: History[] = []; @Input() history: History[] = [];
@Input() translationKey: string = ""; @Input() translationKey: string = "";
showSidebar = false; public showSidebar: boolean = false;
constructor() { public constructor() {
} }
ngOnInit(): void { public ngOnInit(): void {
} }
openHistory(): void { public openHistory(): void {
this.showSidebar = true; this.showSidebar = true;
let oldHistory: Partial<History> = {}; let oldHistory: Partial<History> = {};
for (const history of this.history) { for (const history of this.history) {
@ -36,7 +36,7 @@ export class HistoryBtnComponent implements OnInit {
} }
} }
getAttributeTranslationKey(key: string) { public getAttributeTranslationKey(key: string): string {
return `common.history.${key}`; return `common.history.${key}`;
} }