- All Courses
- TypeScript for Application Developers
- TypeScript in Practice
- Declaration files and untyped packages
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.
- 6m
- Intermediate

Video by Maksim Ivanov · YouTube
Check your understanding
3 questions. Unlocks when you finish the video.
Overview
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
Resources
Your notes will live here
Note taking is not available yet. Nothing you type would be saved, so the tab stays read-only for now.