File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -369,7 +369,7 @@ export type WatchChangeHook = (
369
369
* ```
370
370
*/
371
371
// eslint-disable-next-line @typescript-eslint/ban-types
372
- export type PluginImpl < O extends object = object > = ( options ?: O ) => Plugin ;
372
+ export type PluginImpl < O extends object = object , A = any > = ( options ?: O ) => Plugin < A > ;
373
373
374
374
export interface OutputBundle {
375
375
[ fileName : string ] : OutputAsset | OutputChunk ;
@@ -497,9 +497,9 @@ export interface OutputPlugin
497
497
version ?: string ;
498
498
}
499
499
500
- export interface Plugin extends OutputPlugin , Partial < PluginHooks > {
500
+ export interface Plugin < A = any > extends OutputPlugin , Partial < PluginHooks > {
501
501
// for inter-plugin communication
502
- api ?: any ;
502
+ api ?: A ;
503
503
}
504
504
505
505
type TreeshakingPreset = 'smallest' | 'safest' | 'recommended' ;
You can’t perform that action at this time.
0 commit comments