How to write function overloads in TypeScript?
Originally Published Here ๐!
The function overload signatures are written above the original function implementation signature without the function body part in TypeScript.
TL;DR
// overload signature when argument
// value is of `string` type
// ๐...
melvingeorge-me.hashnode.dev4 min read