summaryrefslogtreecommitdiff
path: root/std/node/_utils.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-06-12 09:19:29 -0400
committerGitHub <noreply@github.com>2020-06-12 09:19:29 -0400
commitd0970daacda0b6f6c2077c2f81948536b574bbe9 (patch)
treef116548be832ae6786449dd6f1257865efe38026 /std/node/_utils.ts
parentca1c2ee82207f2ead857ab4aeca48edff16827ae (diff)
make std deno-lint clean (#6240)
Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'std/node/_utils.ts')
-rw-r--r--std/node/_utils.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/std/node/_utils.ts b/std/node/_utils.ts
index b8c4fa00e..463d4e67c 100644
--- a/std/node/_utils.ts
+++ b/std/node/_utils.ts
@@ -16,10 +16,10 @@ export type MaybeDefined<T> = T | undefined;
export type MaybeEmpty<T> = T | null | undefined;
export function intoCallbackAPI<T>(
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
func: (...args: any[]) => Promise<T>,
cb: MaybeEmpty<(err: MaybeNull<Error>, value: MaybeEmpty<T>) => void>,
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
...args: any[]
): void {
func(...args)
@@ -28,11 +28,11 @@ export function intoCallbackAPI<T>(
}
export function intoCallbackAPIWithIntercept<T1, T2>(
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
func: (...args: any[]) => Promise<T1>,
interceptor: (v: T1) => T2,
cb: MaybeEmpty<(err: MaybeNull<Error>, value: MaybeEmpty<T2>) => void>,
- /* eslint-disable-next-line @typescript-eslint/no-explicit-any */
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
...args: any[]
): void {
func(...args)