Skip to content

Commit

Permalink
fix(gp): update ASTNode as recursive type (TS3.7)
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Nov 22, 2019
1 parent 651e281 commit 33fbd7f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/gp/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@ export const enum GeneType {

/**
* Type alias for S-expression based AST
*
* TODO update OpGen generics (recursive ASTNode<OP,T>)
*/
export type ASTNode<OP, T> = TerminalGene<T> | OpGene<OP, any>;
export type ASTNode<OP, T> = TerminalGene<T> | OpGene<OP, ASTNode<OP, T>>;

export type MEPGene<OP, T> = TerminalGene<T> | OpGene<OP, number>;

Expand Down

0 comments on commit 33fbd7f

Please sign in to comment.