x-block-lib 0.8.45 → 0.8.47

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.
@@ -1,15 +1,10 @@
1
1
  import * as Blockly from 'blockly/core';
2
- import { EventKind, Type } from 'x-runtime-lib';
3
- interface Param {
4
- key: string;
5
- name: string;
6
- type: Type;
7
- }
2
+ import { EventKind, ZField } from 'x-runtime-lib';
8
3
  interface EventInfo {
9
4
  id: string;
10
5
  kind: EventKind;
11
6
  names: string[];
12
- params: Param[];
7
+ params?: ZField[];
13
8
  }
14
9
  export declare function getAllOnEventInfos(nodeId: string): EventInfo[];
15
10
  export declare function getOnEventInfo(id: string): EventInfo | undefined;
@@ -1,21 +1,11 @@
1
1
  import * as Blockly from 'blockly/core';
2
- import { MethodKind, Type } from 'x-runtime-lib';
3
- interface Input {
4
- key: string;
5
- name: string;
6
- type: Type;
7
- }
8
- interface Output {
9
- key: string;
10
- name: string;
11
- type: Type;
12
- }
2
+ import { MethodKind, ZField } from 'x-runtime-lib';
13
3
  interface MethodInfo {
14
4
  id: string;
15
5
  kind: MethodKind;
16
6
  names: string[];
17
- inputs: Input[];
18
- outputs: Output[];
7
+ inputs?: ZField[];
8
+ outputs?: ZField[];
19
9
  }
20
10
  export declare function getAllCallMethodInfos(nodeId: string): MethodInfo[];
21
11
  export declare function getCallMethodInfo(id: string): MethodInfo | undefined;
@@ -23,7 +13,7 @@ export declare function genCallMethodOpts(nodeId: string): Blockly.MenuOption[];
23
13
  export declare function getAllImplementMethodInfos(): MethodInfo[];
24
14
  export declare function getImplementMethodInfo(id: string): MethodInfo | undefined;
25
15
  export declare function genImplementMethodOpts(): Blockly.MenuOption[];
26
- export declare function getAllImplementMethodOutputInfos(methodId: string): Output[];
27
- export declare function getImplementMethodOutputInfo(methodId: string, outputKey: string): Output | undefined;
16
+ export declare function getAllImplementMethodOutputInfos(methodId: string): ZField[] | undefined;
17
+ export declare function getImplementMethodOutputInfo(methodId: string, outputKey: string): ZField | undefined;
28
18
  export declare function genImplementMethodOutputOpts(methodKey: string): Blockly.MenuOption[];
29
19
  export {};