<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Declaration Files on AI VOID</title><link>https://ai-blog.noorshomelab.dev/tags/declaration-files/</link><description>Recent content in Declaration Files on AI VOID</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 14 Jan 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://ai-blog.noorshomelab.dev/tags/declaration-files/index.xml" rel="self" type="application/rss+xml"/><item><title>Chapter 4: Type Narrowing, Assertion &amp;amp; Declaration Files</title><link>https://ai-blog.noorshomelab.dev/typescript-architect-prep-2026/type-narrowing-assertion-declaration-files/</link><pubDate>Wed, 14 Jan 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/typescript-architect-prep-2026/type-narrowing-assertion-declaration-files/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;This chapter dives into three critical aspects of advanced TypeScript development: Type Narrowing, Type Assertion, and Declaration Files. Mastering these concepts is fundamental for writing robust, maintainable, and type-safe code, especially in large-scale applications or when interacting with JavaScript libraries. Interviewers use questions on these topics to gauge a candidate&amp;rsquo;s understanding of how TypeScript analyzes code flow, how to confidently handle types when the compiler can&amp;rsquo;t infer them, and how to extend TypeScript&amp;rsquo;s type system to external JavaScript code.&lt;/p&gt;</description></item><item><title>Chapter 11: Working with External Libraries: Declaration Files (.d.ts)</title><link>https://ai-blog.noorshomelab.dev/ts-mastery-2025/working-external-libraries-declaration-files/</link><pubDate>Fri, 05 Dec 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/ts-mastery-2025/working-external-libraries-declaration-files/</guid><description>&lt;h2 id="introduction-bridging-the-gap-with-javascript-libraries"&gt;Introduction: Bridging the Gap with JavaScript Libraries&lt;/h2&gt;
&lt;p&gt;Welcome back, intrepid TypeScript explorer! So far, we&amp;rsquo;ve focused on writing brand-new TypeScript code, enjoying all the lovely type safety and developer experience it offers. But let&amp;rsquo;s be real: the JavaScript ecosystem is vast, and you&amp;rsquo;re almost certainly going to use existing JavaScript libraries in your projects. Think about popular tools like &lt;code&gt;lodash&lt;/code&gt;, &lt;code&gt;axios&lt;/code&gt;, &lt;code&gt;react&lt;/code&gt;, or &lt;code&gt;express&lt;/code&gt;. These are written in plain JavaScript, which means they don&amp;rsquo;t inherently come with TypeScript&amp;rsquo;s type information.&lt;/p&gt;</description></item></channel></rss>