Skip to content

Commit 0882581

Browse files
authored
Merge pull request basarat#328 from basarat/patch-1
closes basarat#326 🌹
2 parents 6a4ebc7 + 8362707 commit 0882581

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

docs/types/freshness.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,9 @@ function logIfHasName(something: { name?: string }) {
4646
}
4747
var person = { name: 'matt', job: 'being awesome' };
4848
var animal = { name: 'cow', diet: 'vegan, but has milk of own species' };
49-
var random = { note: `I don't have a name property` };
5049

5150
logIfHasName(person); // okay
5251
logIfHasName(animal); // okay
53-
logIfHasName(random); // okay
5452
logIfHasName({neme: 'I just misspelled name to neme'}); // Error: object literals must only specify known properties. `neme` is excessive here.
5553
```
5654

0 commit comments

Comments
 (0)