fix(types): allow void return in transformHead hook

pull/2104/head
Evan You 2 years ago
parent 2bf8df4bae
commit 32dfaf5adc

@ -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.

Loading…
Cancel
Save