@nighthawk.hq/macro-sdk 0.1.0 → 0.1.2
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/decorators.d.ts +1 -2
- package/lib/types.d.ts +0 -1
- package/package.json +5 -1
package/lib/decorators.d.ts
CHANGED
|
@@ -7,13 +7,12 @@ export type ActionOptions = {
|
|
|
7
7
|
suggestedKey?: string;
|
|
8
8
|
};
|
|
9
9
|
type MacroOpts = {
|
|
10
|
-
id: string;
|
|
11
10
|
schemaVersion?: number;
|
|
12
11
|
target?: Target;
|
|
13
12
|
tickTimeoutMs?: number;
|
|
14
13
|
};
|
|
15
14
|
type AnyCtor = abstract new (...args: never[]) => MacroBase;
|
|
16
|
-
export declare function Macro(opts
|
|
15
|
+
export declare function Macro(opts?: MacroOpts): <T extends AnyCtor>(value: T, context: ClassDecoratorContext) => T;
|
|
17
16
|
export declare function OnStart(): (_method: unknown, context: ClassMethodDecoratorContext) => void;
|
|
18
17
|
export declare function OnStop(): (_method: unknown, context: ClassMethodDecoratorContext) => void;
|
|
19
18
|
export declare function OnTick(hz: number): (_method: unknown, context: ClassMethodDecoratorContext) => void;
|
package/lib/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nighthawk.hq/macro-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Nighthawk macro author SDK — types only. Runtime is provided by the host.",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/test137E29B/nighthawk-hq-macro-sdk.git"
|
|
9
|
+
},
|
|
6
10
|
"types": "./lib/index.d.ts",
|
|
7
11
|
"exports": {
|
|
8
12
|
".": { "types": "./lib/index.d.ts", "default": "./stub.js" },
|