Skip to content

Commit

Permalink
[alg] Export AlgNode, AlgLeaf, AlgBranch.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Aug 3, 2022
1 parent e9a01d3 commit 94a0d76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cubing/alg/alg-nodes/AlgNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ import type { Move } from "./leaves/Move";
import type { Newline } from "./leaves/Newline";
import type { Pause } from "./leaves/Pause";

/** @category Alg */
export type AlgLeaf = Move | LineComment | Newline | Pause;
export type AlgContainer = Grouping | Conjugate | Commutator;
/** @category Alg */
export type AlgBranch = Grouping | Conjugate | Commutator;

/** @category Alg */
export type AlgNode = AlgLeaf | AlgContainer;
export type AlgNode = AlgLeaf | AlgBranch;
2 changes: 2 additions & 0 deletions src/cubing/alg/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export { keyToMove } from "./keyboard";
export * from "./alg-nodes";
export type { MoveModifications } from "./alg-nodes/leaves/Move";

export type { AlgLeaf, AlgBranch, AlgNode } from "./alg-nodes/AlgNode";

export { experimentalAlgCubingNetLink } from "./url";
export type { AlgCubingNetOptions } from "./url";

Expand Down

0 comments on commit 94a0d76

Please sign in to comment.