TypeScript is a powerful language that can be used to create complex applications. In this extended JS Drop training, Adam Rackis discusses the power of TypeScript and how it can be used to clone types, create functions that return types, and alias properties.
Adam explains how to use utility types to manipulate strings, and how to use string literals to infer parts of a path. He also demonstrates the concept of generics, which allow for a single function to work with multiple types, and how TypeScript is smart enough to infer the types of data being used in a generic function or class.
Adam also discusses the differences between using type and interface syntax in TypeScript, and how to narrow types in a union using the in operator, type discriminators, helper functions, and the as const keyword.
https://github.com/arackaf/typescript...