Learn
Custom Types
Review

Upon completion of this lesson you have officially* become a TypeScript Hero. No longer are you limited to TypeScript’s pre-defined types; you have now learned how to create your own custom types! These include:

  • Enums (both string and numeric)
  • Object types
  • Function types

Furthermore, you learned how to refer to complex types using type aliases. And you even learned to master generics, which are like doubly-custom types. Impressive!


*Codecademy is not accredited to bestow this title. However, your own mind has the power to shape your reality.

Folder Icon

Take this course for free

Already have an account?