Skip to content

Commit

Permalink
Update hook type to match internal Rollup types
Browse files Browse the repository at this point in the history
  • Loading branch information
vladshcherbin committed Sep 8, 2024
1 parent e7262d8 commit 14e87ae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import internalDel from 'del';
import { Plugin } from 'rollup';
import type { Options as DelOptions } from 'del';
import type { Plugin, AsyncPluginHooks } from 'rollup';

interface Options extends internalDel.Options {
interface Options extends DelOptions {
/**
* Rollup hook the plugin should use.
* @default 'buildStart'
*/
readonly hook?: string;
readonly hook?: AsyncPluginHooks;

/**
* Delete items once. Useful in watch mode.
Expand All @@ -18,7 +18,7 @@ interface Options extends internalDel.Options {
* Patterns of files and folders to be deleted.
* @default []
*/
readonly targets?: string | ReadonlyArray<string>;
readonly targets?: string | readonly string[];

/**
* Outputs removed files and folders to console.
Expand Down

0 comments on commit 14e87ae

Please sign in to comment.