Skip to content

Commit

Permalink
Fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoespeon committed Dec 6, 2023
1 parent ef66551 commit a58755c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ function updateCode(
if (
!path.isClassMethod() &&
!path.isObjectMethod() &&
// @ts-expect-error Not sure why it complains about types, probably inferrence issue
!Position.hasSpaceBetweenPaths(path, pathBelow)
) {
newStatementPosition = newStatementPosition.putAtNextLine();
Expand All @@ -112,6 +111,7 @@ function updateCode(
const extracted = path.getSibling(path.key - 1);

if (
// @ts-expect-error Not sure why it doesn't compile
pathBelow.isObjectProperty() &&
!Position.hasSpaceBetweenPaths(path, extracted)
) {
Expand Down

0 comments on commit a58755c

Please sign in to comment.