Skip to content

Commit 94a0d76

Browse files
committed
[alg] Export AlgNode, AlgLeaf, AlgBranch.
1 parent e9a01d3 commit 94a0d76

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/cubing/alg/alg-nodes/AlgNode.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ import type { Move } from "./leaves/Move";
66
import type { Newline } from "./leaves/Newline";
77
import type { Pause } from "./leaves/Pause";
88

9+
/** @category Alg */
910
export type AlgLeaf = Move | LineComment | Newline | Pause;
10-
export type AlgContainer = Grouping | Conjugate | Commutator;
11+
/** @category Alg */
12+
export type AlgBranch = Grouping | Conjugate | Commutator;
1113

1214
/** @category Alg */
13-
export type AlgNode = AlgLeaf | AlgContainer;
15+
export type AlgNode = AlgLeaf | AlgBranch;

src/cubing/alg/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ export { keyToMove } from "./keyboard";
1414
export * from "./alg-nodes";
1515
export type { MoveModifications } from "./alg-nodes/leaves/Move";
1616

17+
export type { AlgLeaf, AlgBranch, AlgNode } from "./alg-nodes/AlgNode";
18+
1719
export { experimentalAlgCubingNetLink } from "./url";
1820
export type { AlgCubingNetOptions } from "./url";
1921

0 commit comments

Comments
 (0)