@taxcore/hackjs 0.0.5 → 0.0.6

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.
@@ -3,5 +3,5 @@ export interface ServerPlugin {
3
3
  readonly name: string;
4
4
  readonly guid: string;
5
5
  }
6
- export declare const plugins: (new () => ServerPlugin)[];
7
- export declare function Plugin(): (target: new () => ServerPlugin) => void;
6
+ export declare const plugins: ServerPlugin[];
7
+ export declare function Plugin(target: ServerPlugin): void;
@@ -3,8 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.plugins = void 0;
4
4
  exports.Plugin = Plugin;
5
5
  exports.plugins = [];
6
- function Plugin() {
7
- return function (target) {
8
- exports.plugins.push(target);
9
- };
6
+ function Plugin(target) {
7
+ exports.plugins.push(target);
10
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taxcore/hackjs",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "packageManager": "yarn@4.6.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -6,10 +6,8 @@ export interface ServerPlugin {
6
6
  readonly guid: string;
7
7
  }
8
8
 
9
- export const plugins: (new() => ServerPlugin)[] = [];
9
+ export const plugins: ServerPlugin[] = [];
10
10
 
11
- export function Plugin() {
12
- return function(target: new() => ServerPlugin){
13
- plugins.push(target);
14
- }
11
+ export function Plugin(target: ServerPlugin) {
12
+ plugins.push(target)
15
13
  }