@compass-framework/plugin
Advanced tools
| import { Environment } from "./PluginRuntime"; | ||
| import { PluginSetup } from "./PluginSetup"; | ||
| import { PluginIdentifier } from "./PluginIdentifier"; | ||
| export declare abstract class BasePlugin<Arguments = {}> { | ||
| public abstract onCreated(args: Arguments): Promise<PluginIdentifier>; | ||
| export declare abstract class BasePlugin<Setup extends PluginSetup> { | ||
| public abstract onCreated(setup: Setup): Promise<PluginIdentifier>; | ||
@@ -7,0 +8,0 @@ public abstract onMounted(env: Environment): Promise<void>; |
@@ -1,7 +0,5 @@ | ||
| import { Context, ViewGroup } from "@compass-framework/core"; | ||
| import { Context } from "@compass-framework/core"; | ||
| export interface PluginSetup { | ||
| getContext(global?: boolean): Context; | ||
| getContainer(): ViewGroup; | ||
| } |
+1
-1
| { | ||
| "name": "@compass-framework/plugin", | ||
| "version": "1.3.5", | ||
| "version": "1.3.6", | ||
| "description": "@compass-framework/plugin public api", | ||
@@ -5,0 +5,0 @@ "types": "./index.d.ts", |
3036
0.36%