Skip to content

Commit

Permalink
fix(nodes)!: UpdateExpression#children
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
  • Loading branch information
unicornware committed Apr 22, 2024
1 parent 9646530 commit b88e339
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/nodes/expression-update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ interface UpdateExpression extends Parent {
* @see {@linkcode Comment}
* @see {@linkcode Expression}
*/
children: [...comments: Comments, argument: Expression]
children:
| [...comments: Comments, argument: Expression]
| [argument: Expression, ...comments: Comments]

/**
* Info from the ecosystem.
Expand All @@ -54,7 +56,7 @@ interface UpdateExpression extends Parent {

/**
* Boolean indicating if {@linkcode operator} should precede the expression
* argument. If `false`, the argument should precede the `operator`.
* argument. If `false`, the argument should precede `operator`.
*/
prefix: boolean

Expand Down

0 comments on commit b88e339

Please sign in to comment.