2019-09-07 04:23:15 +00:00
|
|
|
import { injectable, postConstruct } from "inversify";
|
|
|
|
import { getPluginMetadata } from './utils'
|
|
|
|
|
|
|
|
export namespace interfaces {
|
|
|
|
@injectable()
|
|
|
|
export abstract class Plugin {
|
|
|
|
public description: PluginMetadata;
|
2019-09-10 09:22:00 +00:00
|
|
|
public logger: Console;
|
2019-09-07 04:23:15 +00:00
|
|
|
|
|
|
|
public load() { }
|
|
|
|
public enable() { }
|
|
|
|
public disable() { }
|
|
|
|
}
|
|
|
|
export interface PluginMetadata {
|
|
|
|
name: string;
|
|
|
|
version: string;
|
|
|
|
author: string | string[];
|
|
|
|
target?: any;
|
|
|
|
}
|
|
|
|
}
|