TypeScript:
Beyond theBasics
EricPotter
Technical Strategist,
Aptera Software
Prerequisites
• Adding types to variables and
parameters
• Creating classes
• Use of Type Definition files
• Configuring the build
Data Types
“ “A data type defines a
collection of data values and
a set of predefined
operations on those values.”
Generics
Basic Inheritance
“
Inheritance produces “is-a”
relationships.
“
Composition > Inheritance
IntersectionTypes
UnionTypes
“ Union Types are most
commonly used to safely
represent potential error
cases.
String Literals
Conclusion
“ Use the TypeScript type
system to clearly express
the intent of the software.
“
Thank You.
Let’s Chat Later.
@pottereric HumbleToolsmith.com

TypeScript: Beyond The Basics

Editor's Notes

  • #6 Example of a data type
  • #20 Is-a relationships can get messy.
  • #27 Venn Diagram
  • #28 Sudo uml for union types
  • #32 Don’t overuse the types. The types can make your code more robust.
  • #38 Don’t overuse the types. The types can make your code more robust.