From 139e00772a88fcf080c279ac9566b816856a89da Mon Sep 17 00:00:00 2001 From: Ruthenic Date: Thu, 1 Dec 2022 20:01:03 -0500 Subject: [PATCH] my linter is: damn linter --- src/utils/asyncForeach.ts | 6 +++++- tests/chapter.ts | 1 - 2 files changed, 5 insertions(+), 2 deletions(-) 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) {