node-pluginsmanager-plugin 0.1.1 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +4 -2
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
declare module "node-pluginsmanager-plugin" {
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import Events from "events";
|
|
6
|
+
|
|
7
|
+
class Plugin extends Events {
|
|
6
8
|
|
|
7
9
|
// params
|
|
8
10
|
public directory: string;
|
|
@@ -33,7 +35,7 @@ declare module "node-pluginsmanager-plugin" {
|
|
|
33
35
|
// load
|
|
34
36
|
|
|
35
37
|
public load(): Promise<void>;
|
|
36
|
-
public unload(): Promise<void>;
|
|
38
|
+
public unload(destroy?: boolean): Promise<void>;
|
|
37
39
|
|
|
38
40
|
// write
|
|
39
41
|
|