@leafer/plugin
Advanced tools
| import { IObject, IPlugin, ILeafer } from '@leafer/interface'; | ||
| declare const PluginManager: { | ||
| power: IObject; | ||
| list: IPlugin[]; | ||
| onLeafer(leafer: ILeafer): void; | ||
| }; | ||
| declare function usePlugin(plugin: IPlugin, config?: IObject): void; | ||
| export { PluginManager, usePlugin }; |
+6
-4
| { | ||
| "name": "@leafer/plugin", | ||
| "version": "1.0.0-beta.12", | ||
| "version": "1.0.0-beta.15", | ||
| "description": "@leafer/plugin", | ||
@@ -8,4 +8,6 @@ "author": "Chao (Leafer) Wan", | ||
| "main": "src/index.ts", | ||
| "types": "types/index.d.ts", | ||
| "files": [ | ||
| "src" | ||
| "types", | ||
| "dist" | ||
| ], | ||
@@ -23,7 +25,7 @@ "repository": { | ||
| "dependencies": { | ||
| "@leafer/debug": "1.0.0-beta.12" | ||
| "@leafer/debug": "1.0.0-beta.15" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.0.0-beta.12" | ||
| "@leafer/interface": "1.0.0-beta.15" | ||
| } | ||
| } |
+2
-0
@@ -22,2 +22,4 @@ import { IPlugin, IObject, ILeafer } from '@leafer/interface' | ||
| if (!power) debug.error('need add PluginManager.power = LeaferUI') | ||
| if (list.includes(plugin)) { | ||
@@ -24,0 +26,0 @@ debug.warn('repeat run', plugin.name) |
3160
14.49%5
25%45
25%+ Added
+ Added
- Removed
- Removed
Updated