From 0ebb013ba64f51b13ed0b8533dfc7caa8da3d724 Mon Sep 17 00:00:00 2001 From: Aaron Date: Thu, 29 Aug 2024 07:12:58 -0500 Subject: [PATCH] types(modules): Use `NestedHooks` instead of `Partial` for hooks object --- packages/wxt/src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/wxt/src/types.ts b/packages/wxt/src/types.ts index 6db67dfb..137ab26e 100644 --- a/packages/wxt/src/types.ts +++ b/packages/wxt/src/types.ts @@ -1379,7 +1379,7 @@ export interface WxtModule { * Alternative to adding hooks in setup function with `wxt.hooks`. Hooks are * added before the `setup` function is called. */ - hooks?: Partial; + hooks?: NestedHooks; /** * A custom function that can be used to setup hooks and call module-specific * APIs.