Typescript

Watch User Created Playlist (1)

This playlist is user created.

pro-course-rss-logo

PRO RSS Feed

Union Types and Type Aliases in TypeScript

P
typescript tutorial about Union Types and Type Aliases in TypeScript

Union Types and Type Aliases in TypeScript

5:01 typescript PRO

Sometimes we want our function arguments to be able to accept more than 1 type; e.g. a string or an array. This lesson will show us how to assign more than 1 type to a variable with Typescript union types and type aliases.

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?