
Getting Started with TypeScript
Ladybug Podcast
00:00
The Basics of Function Types
typing functions can be a little bit tricky. Let's create an alias by declaring type followed by the name of whatever type you want to call it. Ah, let's go back to our combined function. It accepts two arguments, either in number or string type, and it returns their combination. And we can note a function's return type by adding a colon or the two dots after the closing parentheses of the function signature.
Transcript
Play full episode