Multiple exports of same functionn - Question #179
Answered
by
zbeyens
JarrodMFlesch
asked this question in
Q&A
-
Reading through the code, I stumbled upon this. I am only bringing light to this as it may have been missed at some point? Multiple exports of the same named function. Feel free to immediately close if it is indeed meant to be like that. |
Beta Was this translation helpful? Give feedback.
Answered by
zbeyens
Jun 9, 2020
Replies: 2 comments
-
In Typescript we can overload functions, so you can export multiple times that way. Some references: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
zbeyens
-
Nice! I did not know that, very cool and insightful. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Typescript we can overload functions, so you can export multiple times that way.
Some references: