Skip to content

Commit

Permalink
types(modules): Use NestedHooks instead of Partial for hooks object
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 committed Aug 29, 2024
1 parent c5f78d0 commit 0ebb013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wxt/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0ebb013

Please sign in to comment.