@voiceflow/base-types 2.20.0 → 2.20.1

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,5 +1,5 @@
1
1
  import { AnyRecord } from "../../types";
2
- import { BasePortList, NextStepPorts } from './port';
2
+ import { AnyBaseStepPorts, BasePortList, NextStepPorts } from './port';
3
3
  /**
4
4
  * @deprecated use BaseNode instead
5
5
  */
@@ -35,3 +35,5 @@ export declare type StepOnlyData<Ports, PortsOld> = {
35
35
  };
36
36
  export interface BaseStep<Data extends AnyRecord = AnyRecord, Ports = NextStepPorts, PortsOld = BasePortList> extends BaseDiagramNode<Data & StepOnlyData<Ports, PortsOld>> {
37
37
  }
38
+ export interface AnyBaseStep extends BaseStep<AnyRecord, AnyBaseStepPorts> {
39
+ }
@@ -16,6 +16,8 @@ export interface BaseStepPorts<Builtin extends Partial<Record<PortType, BasePort
16
16
  builtIn: Builtin;
17
17
  dynamic: Dynamic;
18
18
  }
19
+ export interface AnyBaseStepPorts extends BaseStepPorts<Record<string, BasePort>, BasePort[]> {
20
+ }
19
21
  export interface BuiltInNextPort {
20
22
  [PortType.NEXT]: BasePort;
21
23
  }
@@ -1,5 +1,5 @@
1
1
  import { AnyRecord } from "../../types";
2
- import { BasePortList, NextStepPorts } from './port';
2
+ import { AnyBaseStepPorts, BasePortList, NextStepPorts } from './port';
3
3
  /**
4
4
  * @deprecated use BaseNode instead
5
5
  */
@@ -35,3 +35,5 @@ export declare type StepOnlyData<Ports, PortsOld> = {
35
35
  };
36
36
  export interface BaseStep<Data extends AnyRecord = AnyRecord, Ports = NextStepPorts, PortsOld = BasePortList> extends BaseDiagramNode<Data & StepOnlyData<Ports, PortsOld>> {
37
37
  }
38
+ export interface AnyBaseStep extends BaseStep<AnyRecord, AnyBaseStepPorts> {
39
+ }
@@ -16,6 +16,8 @@ export interface BaseStepPorts<Builtin extends Partial<Record<PortType, BasePort
16
16
  builtIn: Builtin;
17
17
  dynamic: Dynamic;
18
18
  }
19
+ export interface AnyBaseStepPorts extends BaseStepPorts<Record<string, BasePort>, BasePort[]> {
20
+ }
19
21
  export interface BuiltInNextPort {
20
22
  [PortType.NEXT]: BasePort;
21
23
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@voiceflow/base-types",
3
3
  "description": "Voiceflow base project types",
4
- "version": "2.20.0",
4
+ "version": "2.20.1",
5
5
  "author": "Voiceflow",
6
6
  "bugs": {
7
7
  "url": "https://github.com/voiceflow/libs/issues"
8
8
  },
9
9
  "dependencies": {
10
- "@voiceflow/common": "^7.25.1",
10
+ "@voiceflow/common": "^7.25.2",
11
11
  "slate": "0.73.0"
12
12
  },
13
13
  "files": [
@@ -43,5 +43,5 @@
43
43
  "test:smoke": "exit 0",
44
44
  "test:unit": "exit 0"
45
45
  },
46
- "gitHead": "99179842bc89bffaafc8c66a20b6f239868ff0f1"
46
+ "gitHead": "13bae0c256520e18682b0b3f1e4c16693f092c68"
47
47
  }