Skip to content

Commit feade74

Browse files
authored
Update TypeScript.md
1 parent 7193261 commit feade74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TypeScript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ const user: User = {
748748
type User = { id: string }
749749
type User = { name: string } // ❌ Error: Duplicate identifier 'User'
750750
```
751-
* Типы могут работать с примитивами:
751+
* Типы могут работать с примитивами, интерфейсы - не могут:
752752
```ts
753753
type Pet = 'cat' | 'dog'
754754
type Pets = `{Pet}s` // 'cats' | 'dogs'

0 commit comments

Comments
 (0)