Advanced types, interfaces, and TS-specific syntax.
| Concept / Tag | Code Snippet | Description |
|---|---|---|
| Union Type |
|
Allow multiple types. |
| Enum |
|
Named constants. |
| Concept / Tag | Code Snippet | Description |
|---|---|---|
| Interface |
|
Define object shape. |
| Readonly |
|
Cannot be modified. |
| Concept / Tag | Code Snippet | Description |
|---|---|---|
| Generic Fn |
|
Reusable type logic. |
| Type Assertion |
|
Explicit type casting. |