server-ts: Implement review comments

This commit is contained in:
Elian Doran
2024-02-17 18:55:41 +02:00
parent 8af5434462
commit 1e91db865b
5 changed files with 9 additions and 8 deletions

View File

@@ -68,7 +68,7 @@ class Becca {
}
findAttributesWithPrefix(type: string, name: string): BAttribute[] {
const resArr = [];
const resArr: BAttribute[][] = [];
const key = `${type}-${name}`;
for (const idx in this.attributeIndex) {
@@ -105,7 +105,7 @@ class Becca {
}
getNotes(noteIds: string[], ignoreMissing: boolean = false): BNote[] {
const filteredNotes = [];
const filteredNotes: BNote[] = [];
for (const noteId of noteIds) {
const note = this.notes[noteId];