Lesson 4.3
Declaration files and untyped packages
Sooner or later a dependency ships no types. Writing a small declaration file is faster and safer than sprinkling any across your codebase.
5mIntermediate9,544 students

Sign in to watch this lesson
Browsing is free. Create an account to play videos and track your progress.
Overview
Sooner or later a dependency ships no types. Writing a small declaration file is faster and safer than sprinkling any across your codebase.
What this lesson covers
- Write a minimal declaration for an untyped module
- Augment the types of an existing package
- Declare global types without polluting every file
This lesson sits in TypeScript in Practice, part of TypeScript for Application Developers. It assumes what came before it and leads directly into the next lesson in the module.
In this lesson you will:
- Write a minimal declaration for an untyped module
- Augment the types of an existing package
- Declare global types without polluting every file