Glossary term
What is declaration file (Declaration file (.d.ts))?
declaration file stands for Declaration file (.d.ts).
A file that describes the types of JavaScript code without containing the code.
Learn it properly · TypeScript From ZeroLesson 5: Modules, Declaration Files and tsconfig in Real ProjectsES modules versus CommonJS, moduleResolution, paths, .d.ts files, @types, project references, and tsconfig for Node, Vite and Next.js.