From e93d7aea45c6cab689b9cfc4d979a85c33bc13de Mon Sep 17 00:00:00 2001 From: wuyuansushen <43259764+wuyuansushen@users.noreply.github.com> Date: Tue, 7 Oct 2025 22:25:12 +0900 Subject: [PATCH] "infer" rather than "as" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TypeScript uses the assigned value to infer the variable’s type. --- .../documentation/copy/en/get-started/TS for JS Programmers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/documentation/copy/en/get-started/TS for JS Programmers.md b/packages/documentation/copy/en/get-started/TS for JS Programmers.md index 4d1ec984241a..2776a84d1c39 100644 --- a/packages/documentation/copy/en/get-started/TS for JS Programmers.md +++ b/packages/documentation/copy/en/get-started/TS for JS Programmers.md @@ -17,7 +17,7 @@ This tutorial provides a brief overview of TypeScript, focusing on its type syst ## Types by Inference TypeScript knows the JavaScript language and will generate types for you in many cases. -For example in creating a variable and assigning it to a particular value, TypeScript will use the value as its type. +For example in creating a variable and assigning it to a particular value, TypeScript will use the value to infer its type. ```ts twoslash let helloWorld = "Hello World";