plasmo icon indicating copy to clipboard operation
plasmo copied to clipboard

[BUG] Unexpected typescript behaviour

Open Aniket-IN opened this issue 9 months ago • 1 comments

What happened?

Hi 👋, I noticed a a weird behaviour while using typescript. Basically with the below code:

const foo: string | null = null

I was expecting that vscode would treat foo as string or null But, it just treats as string

image

Not sure, why this is happening. Initially I thought something wrong with my config. Then, I did a fresh install of the with-nextjs example. Same with that as well.

Version

Latest

What OS are you seeing the problem on?

Windows

What browsers are you seeing the problem on?

No response

Relevant log output

No response

(OPTIONAL) Contribution

  • [ ] I would like to fix this BUG via a PR

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct
  • [X] I checked the current issues for duplicate problems.

Aniket-IN avatar Nov 16 '23 23:11 Aniket-IN