import type { API } from './cli'; import type { Plugin as P } from '@ray-core/types'; export type PluginMethods = 'setup' | 'configWebpack'; export type Plugin = string | PluginIns | ((api: API) => PluginIns); interface _P { /** * 初始化插件 */ setup?: () => void; [key: string]: unknown; } export type PluginIns = _P & P; export {};