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
Copy file name to clipboardExpand all lines: docs/preprocessors/typescript.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# TypeScript Support
2
2
3
+
[Official blog post](https://svelte.dev/blog/svelte-and-typescript)
4
+
3
5
## Getting it to work in the editor
4
6
5
7
To tell us to treat your script tags as typescript, add a `type` or `lang` attribute to your script tags like so:
@@ -58,7 +60,7 @@ import typescript from '@rollup/plugin-typescript';
58
60
}
59
61
```
60
62
61
-
And this should work to enable full TypeScript checking in your Svelte files. For further discussion and a clonable template [see this issue](https://github.com/sveltejs/language-tools/issues/161).
63
+
And this should work to enable full TypeScript checking in your Svelte files. For further information and a clonable template [see the official announcement blog post](https://svelte.dev/blog/svelte-and-typescript).
0 commit comments