Skip to content

Commit

Permalink
refactor(nodes)!: [CatchClause] specify patterns
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 21, 2024
1 parent 42f6b9b commit 6f2cd94
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/nodes/catch-clause.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@

import type { InternalComments } from '#internal'
import type {
ArrayPattern,
BlockStatement,
Comments,
Data,
Nothing,
Parent,
Pattern
Identifier,
ObjectPattern,
Parent
} from '@flex-development/esast'
import type { Optional } from '@flex-development/tutils'

Expand All @@ -34,15 +35,16 @@ interface CatchClause extends Parent {
/**
* List of children.
*
* @see {@linkcode ArrayPattern}
* @see {@linkcode BlockStatement}
* @see {@linkcode Comments}
* @see {@linkcode Nothing}
* @see {@linkcode Pattern}
* @see {@linkcode Identifier}
* @see {@linkcode ObjectPattern}
*/
children:
| [
...comments: Comments,
param: Pattern,
param: ArrayPattern | Identifier | ObjectPattern,
...comments: InternalComments,
body: BlockStatement
]
Expand Down

0 comments on commit 6f2cd94

Please sign in to comment.