How to add a number type annotation to a function parameter in TypeScript?
Originally Published Here ๐!
Number type annotations can be added to function parameters by declaring the function and then adding the name of the parameter followed by the : symbol (colon) and then the type number after the symbol.
TL;DR
// add num...
melvingeorge-me.hashnode.dev2 min read