Skip to content

Commit c49700e

Browse files
authored
Merge pull request basarat#133 from hunan-rostomyan/master
Fix minor typos
2 parents 2f8a88d + 5ddb779 commit c49700e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/types/freshness.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ logIfHasName(random); // okay
5353
logIfHasName({neme: 'I just misspelled name to neme'}); // Error: object literals must only specify known properties. `neme` is excessive here.
5454
```
5555

56-
The reason why only object literals are type checked this way is because having a object literal created on the spot and passed in with additional properties *that aren't actually used* is almost always a typo or a misunderstanding of the API.
56+
The reason why only object literals are type checked this way is because having an object literal created on the spot and passed in with additional properties *that aren't actually used* is almost always a typo or a misunderstanding of the API.
5757

5858
### Allowing extra properties
5959

@@ -94,7 +94,7 @@ interface State {
9494
// You want to do:
9595
this.setState({foo: "Hello"}); // Yay works fine!
9696

97-
// Because of freshness its protected against typos as well!
97+
// Because of freshness it's protected against typos as well!
9898
this.setState({foos: "Hello"}}; // Error: Objects may only specify known properties
9999

100100
// And still type checked

0 commit comments

Comments
 (0)