Skip to content

Commit fa15cde

Browse files
author
Jason Cihelka
committed
fix id types
1 parent 70f8e38 commit fa15cde

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/types/topology/Link.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export interface TopologyAbstractLink extends TopologyComponent {
1919
position: () => { x1: number; x2: number; y1: number; y2: number };
2020
line: () => any; // TODO: line
2121
topology: () => any;
22-
id: () => NxId | NxId;
22+
id: (() => NxId) | NxId;
2323
linkKey: () => any;
2424
reverse: () => any;
2525
centerPoint: () => any;

src/types/topology/Node.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export interface TopologyAbstractNode extends TopologyComponent {
1515
lockYAxle: () => boolean;
1616
stageScale: (value: number) => any;
1717
topology: () => any; // TODO: Topology type
18-
id: () => NxId | NxId;
18+
id: (() => NxId) | NxId;
1919
enable: (inValue?: boolean) => void | boolean;
2020
node: () => TopologyNode;
2121
showIcon: (inValue?: boolean) => void | boolean;

0 commit comments

Comments
 (0)