dominicv
TTCTheo's Typesafe Cult
•Created by dominicv on 6/2/2023 in #questions
How do I use the return type of a function with overloads that will be returned in the same function
I found a workaround using classes:
https://codesandbox.io/s/fast-rain-pyixhv?file=/src/index.ts
6 replies
TTCTheo's Typesafe Cult
•Created by dominicv on 6/2/2023 in #questions
How do I use the return type of a function with overloads that will be returned in the same function
6 replies
TTCTheo's Typesafe Cult
•Created by dominicv on 6/2/2023 in #questions
How do I use the return type of a function with overloads that will be returned in the same function
This is the with the isse:
6 replies
TTCTheo's Typesafe Cult
•Created by dominicv on 6/2/2023 in #questions
How do I use the return type of a function with overloads that will be returned in the same function
This one works without the "magic": https://codesandbox.io/s/distracted-payne-1fe5fm?file=/src/index.ts
6 replies