Explain it in 60 seconds
Declaration files and @types packages
Frontend Engineering · TypeScript · Beginner
What are declaration files (.d.ts), and what are @types packages?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- .d.ts describes types without implementation.
- Libraries ship own types or via DefinitelyTyped.
- @types/package installs community types.
- Write your own for untyped code.
- declare module.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.