Replies: 1 comment 2 replies
-
@zgoda Long shot, but where you able to resolve this in the end? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a plain JS code that I'd like to have type-checked with TS. Adding
// @ts-check
to module source is enough in VS Code and it works great except for thatclass
JSX attribute that is allowed by Preact although it's not defined in JSX typings and therefore reported as error. I tried a solution from this article but it does not work for me because it's plain JS so the TS checker is run by VSC independently of project config. I suppose this may be unsolvable on my side because it's internal TS checker but maybe someone tried that before or has any idea?Beta Was this translation helpful? Give feedback.
All reactions