square/svelte-store

`trackState` typing

sudo97 opened this issue · 0 comments

sudo97 commented

I just noticed that until I passed trackState: true, my attempts to use isLoading or isPending were failing. But typescript didn't warn me about it. So I thought that it actually can be typed in some whey similar to this snipped

But, then question. Is this desired?