Day 12 of 14 30 minimport type.d.ts files@types
Share types across files and use typed libraries. Export and import types, use import type, understand declaration files (.d.ts) and the @types packages, describe untyped code with declare, and extend existing types.
By the end of today you can
- Export and import values and types between TypeScript files
- Use import type and explain why it exists
- Explain what a .d.ts declaration file is
- Install type definitions from @types for JavaScript libraries
- Describe untyped globals and modules with declare
What's inside
- 4 sections
- 2 diagrams and mind maps
- 2 code examples you can run
- 5-question quiz
- 1Exporting and importing types
- 2Declaration files (.d.ts)
- 3declare: describing what already exists
- 4Extending existing types
Sign in free to read this lesson
Get the full lesson with diagrams, runnable code and the quiz. Your progress is saved across devices.
Sign in free