1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-12-24 00:31:56 +02:00

improving types

This commit is contained in:
Patrik J. Braun
2018-11-28 23:49:33 +01:00
parent 987007b7c4
commit 62655eb47f
53 changed files with 262 additions and 214 deletions

View File

@@ -192,7 +192,7 @@ export class SearchManager implements ISearchManager {
}
private encapsulateAutoComplete(values: string[], type: SearchTypes): Array<AutoCompleteItem> {
const res = [];
const res: AutoCompleteItem[] = [];
values.forEach((value) => {
res.push(new AutoCompleteItem(value, type));
});