Still didn't seem to fix the issue! Although I also ran into this last week, which I have not been able to solve. Something must be wrong with my setup somewhere haha. Check it out:
Prettier wants this:
export default function Heading( props: HTMLProps<HTMLHeadingElement> & { as?: AsTags withComponent?: HeadingTags }, ) /* .... */
But typescript fails to compile because of the missing comma after as?: AsTags as it wants as?: AsTags, but prettier removes it ._.
as?: AsTags
as?: AsTags,
Thanks for providing the snippets though. If you can shed any light on this one I would appreciate it a ton :3
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Still didn't seem to fix the issue! Although I also ran into this last week, which I have not been able to solve. Something must be wrong with my setup somewhere haha. Check it out:
Prettier wants this:
But typescript fails to compile because of the missing comma after
as?: AsTags
as it wantsas?: AsTags,
but prettier removes it ._.Thanks for providing the snippets though. If you can shed any light on this one I would appreciate it a ton :3