Just a basic question: Is the $-syntax for stores applicable in non-component JavaScript files?
The doc says:
Any time you have a reference to a store, you can access its value inside a component by prefixing it with the $ character.
However, this official example seems to use the $-syntax in a derived store which is not a component:
export const elapsed = derived(
time,
$time => Math.round(($time - start) / 1000)
);
Is this a special case for custom stores? Or is it possible because it gets imported into a component?