Skip to content

Commit

Permalink
simplify _param typings
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Jun 20, 2022
1 parent f3cf592 commit 21f5a9b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/babel-generator/src/generators/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,7 @@ export function _parameters(

export function _param(
this: Printer,
parameter:
| t.Function["params"][number]
| t.TSIndexSignature["parameters"][number]
| t.TSDeclareMethod["params"][number]
| t.TSDeclareFunction["params"][number]
| t.TSFunctionType["parameters"][number]
| t.TSConstructorType["parameters"][number],
parameter: t.Identifier | t.RestElement | t.Pattern | t.TSParameterProperty,
parent?:
| t.Function
| t.TSIndexSignature
Expand Down

0 comments on commit 21f5a9b

Please sign in to comment.