Coding task · JavaScript and TypeScript course · Module 6: TypeScript Basics

Practice: Type Aliases and Type Guards

Use type aliases and type guards to type dinosaur data.

Task

Create a type alias DinoStatus and a function with a type guard that checks whether a dinosaur is carnivorous.