From 067b9b0d1e61fdbaae64f5c73bd908b884f0831e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20LES=C3=89N=C3=89CHAL?= Date: Wed, 4 Oct 2023 21:45:15 +0200 Subject: [PATCH] Fix generic array on Hook --- mw/hook.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mw/hook.d.ts b/mw/hook.d.ts index d162389..c9fe93b 100644 --- a/mw/hook.d.ts +++ b/mw/hook.d.ts @@ -48,7 +48,7 @@ interface Hook { * @param {...Function} handler Function to bind. * @chainable */ - add(...handler: ((...data: T) => any)[]): this; + add(...handler: Array<(...data: T) => any>): this; /** * Run a hook. @@ -64,7 +64,7 @@ interface Hook { * @param {...Function} handler Function to unbind. * @chainable */ - remove(...handler: ((...data: T) => any)[]): this; + remove(...handler: Array<(...data: T) => any>): this; } declare global {