@taxcore/hackjs 0.0.3 → 0.0.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/package.json +1 -1
- package/src/PluginSystem.ts +2 -2
package/package.json
CHANGED
package/src/PluginSystem.ts
CHANGED
|
@@ -6,10 +6,10 @@ export interface ServerPlugin {
|
|
|
6
6
|
readonly guid: string;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export const plugins: ServerPlugin[] = [];
|
|
9
|
+
export const plugins: (new() => ServerPlugin)[] = [];
|
|
10
10
|
|
|
11
11
|
export function Plugin() {
|
|
12
|
-
return function(target: ServerPlugin){
|
|
12
|
+
return function(target: new() => ServerPlugin){
|
|
13
13
|
plugins.push(target);
|
|
14
14
|
}
|
|
15
15
|
}
|