Skip to content

Commit

Permalink
deps: Bump ast-types version to 0.15.3-0.tsflower.3
Browse files Browse the repository at this point in the history
This fixes the issue with `static` and `method` on ObjectTypeProperty:
  benjamn/ast-types#755
  • Loading branch information
gnprice committed May 8, 2022
1 parent ad6fec6 commit 8987593
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion lib/printer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1757,7 +1757,6 @@ function genericPrintNoParens(path: any, options: any, print: any) {
const parent = path.getParentNode(0);
const isArrowFunctionTypeAnnotation = !(
namedTypes.ObjectTypeCallProperty.check(parent) ||
// @ts-expect-error https://github.com/benjamn/ast-types/pull/755
(namedTypes.ObjectTypeProperty.check(parent) && parent.method) ||
(namedTypes.ObjectTypeInternalSlot.check(parent) && parent.method) ||
namedTypes.DeclareFunction.check(path.getParentNode(2))
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"fs": false
},
"dependencies": {
"ast-types": "npm:@gregprice/ast-types@^0.15.3-0.tsflower.2",
"ast-types": "npm:@gregprice/ast-types@^0.15.3-0.tsflower.3",
"esprima": "~4.0.0",
"source-map": "~0.6.1",
"tslib": "^2.0.1"
Expand Down

0 comments on commit 8987593

Please sign in to comment.