From d000d9c35761a1499d8f9fbd404afb4442cd7fcc Mon Sep 17 00:00:00 2001 From: Sarah Rainsberger Date: Thu, 13 Jun 2024 15:24:54 +0000 Subject: [PATCH 1/2] add typescript content to setup-install --- src/content/docs/en/install-and-setup.mdx | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/src/content/docs/en/install-and-setup.mdx b/src/content/docs/en/install-and-setup.mdx index 1a73b2eb043d0..a02ff418af1fd 100644 --- a/src/content/docs/en/install-and-setup.mdx +++ b/src/content/docs/en/install-and-setup.mdx @@ -156,29 +156,22 @@ Explore the guides below to customize your development experience. title="Editor Setup" description="Customize your code editor to improve the Astro developer experience and unlock new features." href="/en/editor-setup/" - /> - - - +### TypeScript in Astro + +Astro ships with built-in support for [TypeScript](https://www.typescriptlang.org/) which can help prevent errors at runtime by defining the shapes of objects and components in your code. + +You don't need to write TypeScript code in your Astro projects to benefit from it. Astro always treats your component code as TypeScript, and the [Astro VSCode Extension](/en/editor-setup/) will infer as much as it can to provide autocompletion, hints, and errors in your editor. + +Read more about using and configuring [TypeScript in Astro](/en/guides/typescript/) + ## Build and preview your site To check the version of your site that will be created at build time, quit the dev server (Ctrl + C) and run the appropriate build command for your package manager in your terminal: From d8facecd3859d8c4d135a8726216be216f19723c Mon Sep 17 00:00:00 2001 From: Sarah Rainsberger Date: Thu, 13 Jun 2024 12:33:29 -0300 Subject: [PATCH 2/2] faulty comma Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com> --- src/content/docs/en/install-and-setup.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/docs/en/install-and-setup.mdx b/src/content/docs/en/install-and-setup.mdx index a02ff418af1fd..88a9e2df3805f 100644 --- a/src/content/docs/en/install-and-setup.mdx +++ b/src/content/docs/en/install-and-setup.mdx @@ -166,7 +166,7 @@ Explore the guides below to customize your development experience. ### TypeScript in Astro -Astro ships with built-in support for [TypeScript](https://www.typescriptlang.org/) which can help prevent errors at runtime by defining the shapes of objects and components in your code. +Astro ships with built-in support for [TypeScript](https://www.typescriptlang.org/), which can help prevent errors at runtime by defining the shapes of objects and components in your code. You don't need to write TypeScript code in your Astro projects to benefit from it. Astro always treats your component code as TypeScript, and the [Astro VSCode Extension](/en/editor-setup/) will infer as much as it can to provide autocompletion, hints, and errors in your editor.