- Published on
TotalTypescript - Assign local variables to default generic slots to dry up your code and improve performance
- Authors
- Name
- Lucas Floriani
- @lucasfloriani13
TotalTypescript - Assign local variables to default generic slots to dry up your code and improve performance
By using local variables, extra generics to hold values, we can reduce the duplication of code inside of the type logic: