types(modules): Use NestedHooks instead of Partial for hooks object

This commit is contained in:
Aaron
2024-08-29 07:12:58 -05:00
parent c5f78d0c8d
commit 0ebb013ba6
+1 -1
View File
@@ -1379,7 +1379,7 @@ export interface WxtModule<TOptions extends WxtModuleOptions> {
* Alternative to adding hooks in setup function with `wxt.hooks`. Hooks are
* added before the `setup` function is called.
*/
hooks?: Partial<WxtHooks>;
hooks?: NestedHooks<WxtHooks>;
/**
* A custom function that can be used to setup hooks and call module-specific
* APIs.