<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vlad</title>
    <description>The latest articles on DEV Community by Vlad (@vladg3105123).</description>
    <link>https://dev.to/vladg3105123</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F460594%2F0b049dae-0be2-47f0-9135-49a04c4dc3c9.png</url>
      <title>DEV Community: Vlad</title>
      <link>https://dev.to/vladg3105123</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vladg3105123"/>
    <language>en</language>
    <item>
      <title>🚀 Getting Started with TypeScript in Deno</title>
      <dc:creator>Vlad</dc:creator>
      <pubDate>Tue, 27 May 2025 09:49:44 +0000</pubDate>
      <link>https://dev.to/vladg3105123/getting-started-with-typescript-in-deno-gkk</link>
      <guid>https://dev.to/vladg3105123/getting-started-with-typescript-in-deno-gkk</guid>
      <description>&lt;p&gt;If you're new to Deno, one of the best parts is that it supports TypeScript &lt;strong&gt;out of the box&lt;/strong&gt; — no extra config, no bundlers, no headaches.&lt;/p&gt;

&lt;p&gt;In this post, I'll walk you through why TypeScript is a game-changer and how Deno makes it easy to start using right away.&lt;/p&gt;




&lt;h2&gt;
  
  
  🧠 What is TypeScript?
&lt;/h2&gt;

&lt;p&gt;TypeScript is a statically typed superset of JavaScript. It helps you write safer code by detecting bugs before your code runs. And best of all — with Deno, you don’t need a build step or &lt;code&gt;tsconfig.json&lt;/code&gt; to get started.&lt;/p&gt;




&lt;h2&gt;
  
  
  ✅ Why Deno + TypeScript is a Perfect Match
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Native TypeScript support&lt;/strong&gt;: Just use &lt;code&gt;.ts&lt;/code&gt; files and Deno handles the rest&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cleaner project setup&lt;/strong&gt;: No need for Babel, Webpack, or tsc&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Improved tooling&lt;/strong&gt;: Built-in formatter, linter, and test runner — all work with TS&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Secure by default&lt;/strong&gt;: Deno runs in a sandbox unless explicitly allowed&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  ✨ Example: Hello TypeScript in Deno
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// hello.ts&lt;/span&gt;
&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;greet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;string&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="kr"&gt;string&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="s2"&gt;`Hello, &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;!`&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;greet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Deno + TypeScript&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run it directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;deno run hello.ts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Boom — TypeScript without any setup.&lt;/p&gt;

&lt;h2&gt;
  
  
  🔧 Need More Than Just One File?
&lt;/h2&gt;

&lt;p&gt;Use Deno’s built-in module system:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// utils.ts&lt;/span&gt;
&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;square&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;x&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;number&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="kr"&gt;number&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;x&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;x&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and import in another file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// main.ts&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;square&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;./utils.ts&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;square&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;));&lt;/span&gt; &lt;span class="c1"&gt;// 16&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  🔍 What’s Next?
&lt;/h2&gt;

&lt;p&gt;In the next posts, I’ll cover:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Organizing a Deno project with TypeScript&lt;/li&gt;
&lt;li&gt;Using third-party modules with type definitions&lt;/li&gt;
&lt;li&gt;Testing with Deno’s built-in test runner&lt;/li&gt;
&lt;li&gt;Deploying TypeScript APIs with Deno Deploy&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;--&lt;/p&gt;

&lt;h3&gt;
  
  
  💡 Pro Tip: Deno’s built-in docs generator works great with TypeScript types. Try:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;deno doc your_module.ts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Thanks for reading!&lt;br&gt;
Follow me for more Deno + TypeScript tips.&lt;br&gt;
Happy deno coding 🔧&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;
&lt;span class="nn"&gt;---&lt;/span&gt;

&lt;span class="s"&gt;Let me know if you’d like a follow-up post — for example, setting up a REST API in Deno with full TypeScript types.&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>typescript</category>
      <category>tutorial</category>
      <category>deno</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
