You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In svelte, you can use {@const variable = element} to declare variables. Unfortunately, this lacks typescript type support, for example:
{@constvar=someGenericMethod<string>()}
Maybe a configuration option for using typescript / coffeescript (not sure how that would look) notation for @const statements, and possibly any others that may also do this.
or, what would probably work better is, with the template tag, specify what script it should use:
<templatelang="pug" script="typescript"><!-- stuff goes here --></template>
The text was updated successfully, but these errors were encountered:
In svelte, you can use {@const variable = element} to declare variables. Unfortunately, this lacks typescript type support, for example:
Maybe a configuration option for using typescript / coffeescript (not sure how that would look) notation for @const statements, and possibly any others that may also do this.
or, what would probably work better is, with the
template
tag, specify what script it should use:The text was updated successfully, but these errors were encountered: