Empty functions or interfaces? #4399
AbdelrhmanAmin
started this conversation in
General
Replies: 2 comments
-
That's TypeScript "method overloading". It tells TS that there are multiple valid ways to call those functions, with varying arguments and signatures, even though there's only one JS implementation: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you :) |
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
-
I have noticed a re-occurring pattern in Redux that I don't understand.
What are those empty functions before the actual function? The actual function starts after the red line I drew on the screenshot.
applyMiddleware.ts
compose.ts
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions