vuestic-ui
Version:
Vue 3 UI Framework
22 lines (21 loc) • 511 B
TypeScript
import type { App } from 'vue';
import { VuesticPluginFabric, VuesticPlugin } from '../types';
/**
* Allow user to use plugin as function or just pass it.
*
* @example
* ```
* createVuesticEssential({
* plugins: [GlobalConfigPlugin]
* })
* ```
*
* or
*
* ```
* createVuesticEssential({
* plugins: [GlobalConfigPlugin({ VaButton: { color: 'primary' } })]
* })
* ```
*/
export declare const usePlugin: <O>(app: App, plugin: VuesticPlugin | VuesticPluginFabric<O[]>, ...options: O[]) => void;