Closed skandragon closed 2 years ago
When I have a construct like:
and using lang="ts" in a Svelte source file, it seems to say that "counts" is not found.
lang="ts"
I can work around this with:
let counts: SiteStatistic $m: counts = SiteStatistics.find().fetch()[0]
However, I'm hoping there is a cleaner way. Any suggestions?
The TS example in the docs also show this as needed, so while I wish it could be defined in the $m block, I'll close this as I should just read the docs better I suppose. :)
When I have a construct like:
and using
lang="ts"
in a Svelte source file, it seems to say that "counts" is not found.I can work around this with:
However, I'm hoping there is a cleaner way. Any suggestions?