How to add a boolean type annotation to a function parameter in TypeScript?
Originally Published Here ๐!
Boolean 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 boolean after the symbol.
TL;DR
// add b...
melvingeorge-me.hashnode.dev2 min read