The TypeScript Cookbook
Examples
Articles
Get the Book!
Menu
Close
Generalizing Function Signatures
Creating Related Function Arguments
Getting Rid of any and unknown
Understanding Generic Instantiation
Generating New Object Types
Adding Const Context to Generic Type Parameters
Modifying Nested Objects
Remapping Types
Allowing at Least One Property
Typing Higher-Order Components
Choosing the Right Visibility Modifier
Writing Static Classes
Working with this Types in Classes
Writing Decorators