We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7193261 commit feade74Copy full SHA for feade74
TypeScript.md
@@ -748,7 +748,7 @@ const user: User = {
748
type User = { id: string }
749
type User = { name: string } // ❌ Error: Duplicate identifier 'User'
750
```
751
-* Типы могут работать с примитивами:
+* Типы могут работать с примитивами, интерфейсы - не могут:
752
```ts
753
type Pet = 'cat' | 'dog'
754
type Pets = `{Pet}s` // 'cats' | 'dogs'
0 commit comments