From 83bbc0fec9da86c3cdd4505a676b642d280ed95d Mon Sep 17 00:00:00 2001 From: hanyujie2002 Date: Sat, 11 May 2024 20:00:32 +0800 Subject: [PATCH 1/3] typo fix Signed-off-by: hanyujie2002 --- .../copy/en/tutorials/TypeScript Tooling in 5 minutes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/documentation/copy/en/tutorials/TypeScript Tooling in 5 minutes.md b/packages/documentation/copy/en/tutorials/TypeScript Tooling in 5 minutes.md index 9e5006b9980f..d33eebba499d 100644 --- a/packages/documentation/copy/en/tutorials/TypeScript Tooling in 5 minutes.md +++ b/packages/documentation/copy/en/tutorials/TypeScript Tooling in 5 minutes.md @@ -54,7 +54,7 @@ The result will be a file `greeter.js` which contains the same JavaScript that y We're up and running using TypeScript in our JavaScript app! Now we can start taking advantage of some of the new tools TypeScript offers. -Add a `: string` type annotation to the 'person' function argument as shown here: +Add a `: string` type annotation to the 'person' function parameter as shown here: ```ts twoslash function greeter(person: string) { From 0b2ce89e5b52ddf256a10e45ce2062133e78a67e Mon Sep 17 00:00:00 2001 From: hanyujie2002 Date: Sat, 11 May 2024 20:07:45 +0800 Subject: [PATCH 2/3] typo fix --- .../copy/en/tutorials/TypeScript Tooling in 5 minutes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/documentation/copy/en/tutorials/TypeScript Tooling in 5 minutes.md b/packages/documentation/copy/en/tutorials/TypeScript Tooling in 5 minutes.md index d33eebba499d..70313324b092 100644 --- a/packages/documentation/copy/en/tutorials/TypeScript Tooling in 5 minutes.md +++ b/packages/documentation/copy/en/tutorials/TypeScript Tooling in 5 minutes.md @@ -90,7 +90,7 @@ error TS2345: Argument of type 'number[]' is not assignable to parameter of type ``` Similarly, try removing all the arguments to the greeter call. -TypeScript will let you know that you have called this function with an unexpected number of parameters. +TypeScript will let you know that you have called this function with an unexpected number of arguments. In both cases, TypeScript can offer static analysis based on both the structure of your code, and the type annotations you provide. Notice that although there were errors, the `greeter.js` file is still created. From 198749c16449aeb6c81ec7b819e9928d69e3ade3 Mon Sep 17 00:00:00 2001 From: hanyujie2002 Date: Sat, 11 May 2024 20:18:50 +0800 Subject: [PATCH 3/3] typo fix --- .../copy/en/tutorials/TypeScript Tooling in 5 minutes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/documentation/copy/en/tutorials/TypeScript Tooling in 5 minutes.md b/packages/documentation/copy/en/tutorials/TypeScript Tooling in 5 minutes.md index 70313324b092..c08b82eb1ba6 100644 --- a/packages/documentation/copy/en/tutorials/TypeScript Tooling in 5 minutes.md +++ b/packages/documentation/copy/en/tutorials/TypeScript Tooling in 5 minutes.md @@ -125,7 +125,7 @@ TypeScript supports new features in JavaScript, like support for class-based obj Here we're going to create a `Student` class with a constructor and a few public fields. Notice that classes and interfaces play well together, letting the programmer decide on the right level of abstraction. -Also of note, the use of `public` on arguments to the constructor is a shorthand that allows us to automatically create properties with that name. +Also of note, the use of `public` on parameters to the constructor is a shorthand that allows us to automatically create properties with that name. ```ts twoslash class Student {