declare variable with type instead of typecasting
This commit is contained in:
parent
e8ae13221e
commit
f6c8102fec
1 changed files with 2 additions and 2 deletions
|
@ -111,8 +111,8 @@ const getCollections = async (
|
|||
};
|
||||
|
||||
export const getLocalCollections = async (): Promise<collection[]> => {
|
||||
const collections =
|
||||
((await localForage.getItem(COLLECTIONS)) as collection[]) ?? [];
|
||||
const collections: collection[] =
|
||||
(await localForage.getItem(COLLECTIONS)) ?? [];
|
||||
return collections;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue