Skip to content
Free Computer Courses
Courses
Search
Projects
Resources
Cheatsheets
Categories
Saved
About
Contact
Log in
Home
/
Programming
/
TypeScript Tutorials
/ Types and shapes
Types and shapes
4 lessons in the TypeScript course.
Full TypeScript course
·
Search this topic
·
Programming
Basic Types
Annotate common values with TypeScript's built-in types.
Interfaces
Describe object shapes with interfaces so properties stay consistent.
Union Types
Allow a value to be one of several types with the | operator.
Type Narrowing
Use checks so TypeScript knows which union member you have.