Skip to content

Commit

Permalink
fix: scripts:registry return hook type
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Apr 2, 2024
1 parent 44629af commit ba45cc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export interface ModuleHooks {
/**
* Transform a script before it's registered.
*/
'scripts:registry': (registry: RegistryScripts) => Promise<void>
'scripts:registry': (registry: RegistryScripts) => void | Promise<void>
}

export default defineNuxtModule<ModuleOptions>({
Expand Down

0 comments on commit ba45cc0

Please sign in to comment.