[
Typescript
]
Typescript Conditional Generic Types
2022-01-19
In this article I show you how I created a function that lets users choose between 2 different data structures as a return type. It uses Conditional Generic Types and Union Types.
#
Typescript
#
nextjs
#
react
#
nodejs