TypeScript Expert
Go beyond the basics. Learn advanced TypeScript patterns that separate good engineers from great ones. Bilingual — hover or tap any paragraph to reveal Vietnamese translation.
What you'll learn
Mixins
Compose behaviour from multiple sources without multiple inheritance
Conditional Types
Type-level if/else to transform and extract types at compile time
Template Literals
Build string union types dynamically with template literal syntax
Decorators
Meta-programming with class, method, and property decorators
Mixins
Compose reusable behaviours across class hierarchies without multiple inheritance
Kết hợp các hành vi tái sử dụng qua các class mà không cần đa kế thừa
Conditional Types
Type-level if/else expressions that unlock advanced type transformations
Biểu thức if/else ở cấp độ kiểu để mở khoá các phép biến đổi kiểu nâng cao
Template Literal Types
Build string types dynamically with template literal syntax
Xây dựng kiểu chuỗi động với cú pháp template literal
Mapped Types
Transform existing types by iterating over their keys
Biến đổi kiểu hiện có bằng cách lặp qua các key của chúng
The infer Keyword
Extract and name types from within conditional type branches
Trích xuất và đặt tên kiểu trong các nhánh kiểu điều kiện
Declaration Merging
Extend interfaces, namespaces, and modules with declaration merging
Mở rộng interface, namespace và module với hợp nhất khai báo
Advanced Type Guards
Narrow union types precisely with user-defined type predicates
Thu hẹp union type chính xác với type predicate do người dùng định nghĩa
Decorators
Class, method, and property decorators for meta-programming
Decorator cho class, method và property để lập trình meta
Utility Types In Depth
Master built-in utility types and build your own type library
Thành thạo utility type tích hợp và xây dựng thư viện kiểu của riêng bạn
Module Augmentation
Extend third-party library types without forking the source
Mở rộng kiểu thư viện bên thứ ba mà không cần fork source