Skip to content

Commit

Permalink
fix(types): allow void return in transformHead hook
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Mar 14, 2023
1 parent 2bf8df4 commit 32dfaf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export interface UserConfig<ThemeConfig = any>
*
* This build hook will allow you to modify the head adding new entries that cannot be statically added.
*/
transformHead?: (context: TransformContext) => Awaitable<HeadConfig[]>
transformHead?: (context: TransformContext) => Awaitable<HeadConfig[] | void>

/**
* HTML transform hook: runs before writing HTML to dist.
Expand Down

0 comments on commit 32dfaf5

Please sign in to comment.