Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit fb781a9

Browse files
committed
Fix typos
1 parent 7a619a3 commit fb781a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pages/release notes/TypeScript 2.1.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
In JavaScript it is fairly common to have APIs that expect property names as parameters, but so far it hasn't been possible to express the type relationships that occur in those APIs.
44

5-
Enter Index Type Query or `keysof`;
5+
Enter Index Type Query or `keyof`;
66
An indexed type query `keyof T` yields the type of permitted property names for `T`.
77
A `keyof T` type is considered a subtype of `string`.
88

@@ -67,7 +67,7 @@ interface Person {
6767
}
6868
```
6969

70-
A partial verion of it can would be:
70+
A partial version of it would be:
7171

7272
```ts
7373
interface PartialPerson {
@@ -90,7 +90,7 @@ type PartialPerson = Partial<Person>;
9090
Mapped types are produced by taking a union of literal types, and computing a set of properties for a new object type.
9191
They're like [list comprehensions in Python](https://docs.python.org/2/tutorial/datastructures.html#nested-list-comprehensions), but instead of producing new elements in a list, they produce new properties in a type.
9292

93-
In addition to `Partial`, Mapped Types can enable expressing many usueful transfomrations on types:
93+
In addition to `Partial`, Mapped Types can express many useful transformations on types:
9494

9595
```ts
9696
// Keep types the same, but make each property to be read-only.
@@ -223,7 +223,7 @@ Compiling and running the output should result in the correct behavior on an ES3
223223

224224
TypeScript injects a handful of helper functions such as `__extends` for inheritance, `__assign` for spread operator in object literals and JSX elements, and `__awaiter` for async functions.
225225

226-
Previously there were two options either:
226+
Previously there were two options:
227227

228228
1. inject helpers in *every* file that needs them, or
229229
2. no helpers at all with `--noEmitHelpers`.

0 commit comments

Comments
 (0)