Skip to content

Commit aa47450

Browse files
authored
Fix typo. Uppercase first word in sentence.
1 parent ee31407 commit aa47450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/Advanced Types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ declare function aliased(arg: Alias): Alias;
525525
declare function interfaced(arg: Interface): Interface;
526526
```
527527

528-
in older versions of TypeScript, type aliases couldn't be extended or implemented from (nor could they extend/implement other types). As of version 2.7, type aliases can be extended by creating a new intersection type e.g. `type Cat = Animal & { purrs: true }`.
528+
In older versions of TypeScript, type aliases couldn't be extended or implemented from (nor could they extend/implement other types). As of version 2.7, type aliases can be extended by creating a new intersection type e.g. `type Cat = Animal & { purrs: true }`.
529529

530530
Because [an ideal property of software is being open to extension](https://en.wikipedia.org/wiki/Open/closed_principle), you should always use an interface over a type alias if possible.
531531

0 commit comments

Comments
 (0)