Skip to content

Commit

Permalink
refactor(nodes): TupleType#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 May 10, 2024
1 parent 0e5301c commit 7094f32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/nodes/tuple-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ interface TupleElement extends Parent {
data?: TupleElementData | undefined

/**
* Optional tuple element?
* Boolean indicating tuple element is optional.
*/
optional: boolean

Expand Down
6 changes: 5 additions & 1 deletion src/nodes/type-tuple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@

import type {
Comment,
Comments,
Data,
EmptyChildren,
Nothing,
Parent,
TupleElement
} from '@flex-development/esast'
Expand All @@ -32,10 +34,12 @@ interface TupleType extends Parent {
/**
* List of children.
*
* @see {@linkcode Comments}
* @see {@linkcode Comment}
* @see {@linkcode Nothing}
* @see {@linkcode TupleElement}
*/
children: (Comment | TupleElement)[] | EmptyChildren
children: (Comment | Nothing | TupleElement)[] | Comments | EmptyChildren

/**
* Info from the ecosystem.
Expand Down

0 comments on commit 7094f32

Please sign in to comment.