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 c08b82eb1ba6..b1701913fce8 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 @@ -102,6 +102,7 @@ Let's develop our sample further. Here we use an interface that describes object In TypeScript, two types are compatible if their internal structure is compatible. This allows us to implement an interface just by having the shape the interface requires, without an explicit `implements` clause. + ```ts twoslash interface Person { firstName: string; @@ -125,7 +126,8 @@ 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 parameters to the constructor is a shorthand that allows us to automatically create properties with that name. +Also of note, the use of `public` on constructor parameters is a shorthand that automatically creates properties with those names. + ```ts twoslash class Student {