question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeScript `as` regression (2.0.3)

See original GitHub issue

Prettier 2.0.3 Playground link

# Options (if any):
--single-quote

Input:

function foo() {
  return {
    foo,
    foo,    
  } as FOO
}

Output:

function foo() {
  return (
    {
      foo,
      foo,
    } as FOO
  );
}

Expected behavior:

same as input

function foo() {
  return {
    foo,
    foo,    
  } as FOO
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
domoritzcommented, Apr 6, 2020
0reactions
thorn0commented, Apr 6, 2020

@domoritz We’ve already solved this situation. Vega-Lite looks like a good codebase to test new versions of Prettier for regressions before releasing. I’ve made a note of it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeScript regression in 2.0.3 #713 - GitHub
I updated to latest http-proxy-middleware . Describe the bug (be clear and concise). import { createProxyMiddleware, Options } ...
Read more >
@types/regression - npm
TypeScript definitions for regression. Latest version: 2.0.2, last published: a year ago. Start using @types/regression in your project by ...
Read more >
@types/regression | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
Documentation - TypeScript 3.9
Unfortunately, that introduced a few regressions, especially when mixing in values with null or undefined . ts. interface Lion {. roar(): void;. }....
Read more >
percy-agent dashboard
#598 build(deps-dev): bump typescript from 4.0.5 to 4.1.3 Deleted User ... dependabot-preview[bot] build(deps-dev): bump tslib from 2.0.0 to 2.0.3 (#582).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found