From 27b55c59e007bcd96724fe6e8822e96cb3f81399 Mon Sep 17 00:00:00 2001 From: Endercheif <45527309+Endercheif@users.noreply.github.com> Date: Mon, 28 Nov 2022 16:45:26 -0800 Subject: [PATCH] [docs] Show recommended method to use TypeScript --- site/content/blog/2020-07-17-svelte-and-typescript.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/site/content/blog/2020-07-17-svelte-and-typescript.md b/site/content/blog/2020-07-17-svelte-and-typescript.md index aaedd6da96..aa2227fb5a 100644 --- a/site/content/blog/2020-07-17-svelte-and-typescript.md +++ b/site/content/blog/2020-07-17-svelte-and-typescript.md @@ -5,6 +5,9 @@ author: Orta Therox authorURL: https://twitter.com/orta --- +*This blog post is outdated. The recommended way to create a Svelte project with TypeScript is using [Vite](https://vitejs.dev). +Run `npm create vite@latest myapp -- --template svelte-ts` for Vite to scaffold a project.* + It's been by far the most requested feature for a while, and it's finally here: Svelte officially supports TypeScript. We think it'll give you a much nicer development experience — one that also scales beautifully to larger Svelte code bases — regardless of whether you use TypeScript or JavaScript.