@compass-framework/plugin
Advanced tools
@@ -1,12 +0,12 @@ | ||
| import {Environment} from "./PluginRuntime"; | ||
| import {Identifier} from "./PluginIdentifier"; | ||
| import {PluginRuntime} from "./PluginRuntime"; | ||
| import {PluginIdentifier} from "./PluginIdentifier"; | ||
| export declare abstract class Plugin<Property, Arguments> { | ||
| public abstract onCreated(args: Arguments): Identifier; | ||
| export declare abstract class BasePlugin<Property, Arguments> { | ||
| public abstract onCreated(args: Arguments): PluginIdentifier; | ||
| public abstract onMounted(env: Environment<Property>): void; | ||
| public abstract onMounted(env: PluginRuntime<Property>): void; | ||
| public abstract onRemoved(): void; | ||
| public abstract getIdentifier(): Identifier; | ||
| public abstract getIdentifier(): PluginIdentifier; | ||
| } |
@@ -1,4 +0,4 @@ | ||
| import {Plugin} from "./BasePlugin"; | ||
| import {BasePlugin} from "./BasePlugin"; | ||
| export declare abstract class PluginManager<Property, Arguments> { | ||
| export declare abstract class BasePluginManager<Property, Arguments> { | ||
| protected constructor(args: Arguments); | ||
@@ -8,5 +8,5 @@ | ||
| public installPlugin(plugin: Plugin<Property, Arguments>): void; | ||
| public installPlugin(plugin: BasePlugin<Property, Arguments>): void; | ||
| public unInstallPlugin(plugin: Plugin<Property, Arguments>): void; | ||
| public unInstallPlugin(plugin: BasePlugin<Property, Arguments>): void; | ||
| } |
| import {PluginIdentifier} from "./PluginIdentifier"; | ||
| import {PluginPlatform} from "./PluginPlatform"; | ||
| export interface Environment<Property> { | ||
| export interface PluginRuntime<Property> { | ||
| exportAPIs(apis: object): void; | ||
@@ -6,0 +6,0 @@ |
+1
-1
| { | ||
| "name": "@compass-framework/plugin", | ||
| "version": "1.2.6", | ||
| "version": "1.2.7", | ||
| "description": "@compass-framework/plugin public api", | ||
@@ -5,0 +5,0 @@ "types": "./index.d.ts", |
1976
2.28%