diff --git a/src/utils/asyncForeach.ts b/src/utils/asyncForeach.ts index f5cf3e2..782b62c 100644 --- a/src/utils/asyncForeach.ts +++ b/src/utils/asyncForeach.ts @@ -1,4 +1,8 @@ -export default async function asyncForEach(array: any[], callback: Function) { +// deno-lint-ignore-file no-explicit-any +export default async function asyncForEach( + array: any[], + callback: (val: any, index: number, array: any[]) => Promise, +) { for (let index = 0; index < array.length; index++) { await callback(array[index], index, array); } diff --git a/tests/chapter.ts b/tests/chapter.ts index 049adeb..b9fa11d 100644 --- a/tests/chapter.ts +++ b/tests/chapter.ts @@ -1,6 +1,5 @@ //FIXME: we need to test single-chapter works too (because those seem to be really inconsistent for some reason?) import AO3 from "../mod.ts"; -import { Work } from "../mod.ts"; import { assert } from "https://deno.land/std@0.167.0/testing/asserts.ts"; export default async function test(ao3: AO3) {