Skip to content

Commit

Permalink
refactor: stricter types
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Apr 10, 2022
1 parent 464dff0 commit f9be533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/structures/Store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class Store<T extends Piece> extends Collection<string, T> {
* Unloads all pieces from the store.
*/
public async unloadAll(): Promise<T[]> {
const promises = [];
const promises: Promise<T>[] = [];
for (const piece of this.values()) {
promises.push(this.unload(piece));
}
Expand Down

0 comments on commit f9be533

Please sign in to comment.