Skip to content

Commit

Permalink
refactor(voiceChatUtilities): make sequential util function generic
Browse files Browse the repository at this point in the history
  • Loading branch information
D3SOX committed May 15, 2024
1 parent 382a725 commit 4c54d5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions voiceChatUtilities/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import type { Channel } from "discord-types/general";

const VoiceStateStore = findStoreLazy("VoiceStateStore");

async function runSequential(promises: Promise<any>[]): Promise<any[]> {
const results: any[] = [];
async function runSequential<T>(promises: Promise<T>[]): Promise<T[]> {
const results: T[] = [];
for (const promise of promises) {
const result = await promise;
results.push(result);
Expand Down

0 comments on commit 4c54d5c

Please sign in to comment.