Getting Started with TypeScript 6
1분 읽기Frontend
Introduction
TypeScript 6 brings exciting new features to the table.
Key Features
- Stricter defaults:
strictis now enabled by default - ES2025 target: Modern JavaScript output by default
- Performance: Faster type checking
Code Example
function greet(name: string): string {
return `Hello, ${name}!`;
}
const result = greet("World");
GFM Table
| Feature | TS5 | TS6 |
|---|---|---|
| Strict default | ❌ | ✅ |
| ES2025 target | ❌ | ✅ |
TypeScript 6 is a game changer for modern web development.
Math Example
The time complexity is .