diff --git a/src/core/types.ts b/src/core/types.ts index be4acf5..42c6de1 100644 --- a/src/core/types.ts +++ b/src/core/types.ts @@ -70,7 +70,8 @@ export type BaseOptions = { getCache?: (cacheKey: string) => CacheData; setCache?: (cacheKey: string, cacheData: CacheData) => void; }; - +// @ts-ignore @typescript-eslint/no-empty-interface +export declare interface PluginOptions {} export type Options = BaseOptions & { defaultParams?: P; ready?: Ref | (() => boolean); @@ -82,7 +83,7 @@ export type Options = BaseOptions & { onError?: (error: Error, params: P) => void; onBefore?: (params: P) => void; onAfter?: (params: P) => void; -}; +} & PluginOptions; export type PluginImplementType = { (queryInstance: Query, config: Options): Partial<