Skip to content

Commit

Permalink
use void for options hook instead of undefined
Browse files Browse the repository at this point in the history
currently we are required to return in the options hook. this change would allow the options hook to have no return value.
  • Loading branch information
ycmjason committed Apr 13, 2022
1 parent b8315e0 commit 3605fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rollup/types.d.ts
Expand Up @@ -381,7 +381,7 @@ export interface PluginHooks extends OutputPluginHooks {
options: (
this: MinimalPluginContext,
options: InputOptions
) => Promise<InputOptions | null | undefined> | InputOptions | null | undefined;
) => Promise<InputOptions | null | void> | InputOptions | null | void;
resolveDynamicImport: ResolveDynamicImportHook;
resolveId: ResolveIdHook;
shouldTransformCachedModule: ShouldTransformCachedModuleHook;
Expand Down

0 comments on commit 3605fcd

Please sign in to comment.