Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/rollup/rollup into sync-b…
Browse files Browse the repository at this point in the history
…b6bfa7e
  • Loading branch information
docschina-bot committed Aug 30, 2023
2 parents 0e2d2ce + bb6bfa7 commit 3b899b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rollup/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ export type WatchChangeHook = (
* ```
*/
// eslint-disable-next-line @typescript-eslint/ban-types
export type PluginImpl<O extends object = object> = (options?: O) => Plugin;
export type PluginImpl<O extends object = object, A = any> = (options?: O) => Plugin<A>;

export interface OutputBundle {
[fileName: string]: OutputAsset | OutputChunk;
Expand Down Expand Up @@ -497,9 +497,9 @@ export interface OutputPlugin
version?: string;
}

export interface Plugin extends OutputPlugin, Partial<PluginHooks> {
export interface Plugin<A = any> extends OutputPlugin, Partial<PluginHooks> {
// for inter-plugin communication
api?: any;
api?: A;
}

type TreeshakingPreset = 'smallest' | 'safest' | 'recommended';
Expand Down

1 comment on commit 3b899b4

@vercel
Copy link

@vercel vercel bot commented on 3b899b4 Aug 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.