Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

How can I disable the "Left side of comma operator is unused and has no side effects" TypeScript warning?

$
0
0

I am writing some reactive statements in Svelte, which often look like this:

$: someVariable, processStuff();

When someVariable changes (or if its contents change, in the case of an object), the function processStuff is called.

However, the TS engine gives me squiggles under someVariable and claims that "Left side of comma operator is unused and has no side effects". This is incorrect.

I never want to see this particular warning. How can I turn it off? I've gone through the TSConfig reference but don't see any mention of it.


Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>