Explain the 'Inlay Hints' and 'Type Acquisition' mechanisms in TypeScript architecture.
Updated May 4, 2026
Short answer
Inlay hints provide inline visual metadata for types and parameters, while Type Acquisition automatically fetches declarations for JavaScript libraries.
Deep explanation
Inlay Hints are an IDE-level feature powered by the TypeScript Language Service that displays inferred types and parameter names directly in the editor, reducing the need for manual annotations while maintaining readability. Automatic Type Acquisition (ATA) allows the TypeScript server to monitor package.json or node_modules and silently fetch @types definitions from npm (DefinitelyTyped) even for plain JavaScript projects. This architecture ensures that the developer experience remains consistent regardless of whether the source code is written in TS or JS.
Unlock with a Pro subscription to view this section.
View pricingReal-world example
No real-world example available yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProCommon mistakes
No common mistakes listed yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProFollow-up questions
No follow-up questions available yet.
Unlock with a Pro subscription to view this section.
Upgrade to Pro