<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Typescript on Opensource Odyssey</title><link>https://opensource-odyssey.net/tags/typescript/</link><description>Recent content in Typescript on Opensource Odyssey</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 22 Aug 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://opensource-odyssey.net/tags/typescript/index.xml" rel="self" type="application/rss+xml"/><item><title>Writing an awesome CLI with typescript</title><link>https://opensource-odyssey.net/posts/writing-an-awesome-cli-with-typescript/</link><pubDate>Thu, 22 Aug 2024 00:00:00 +0000</pubDate><guid>https://opensource-odyssey.net/posts/writing-an-awesome-cli-with-typescript/</guid><description>&lt;figure class="not-prose my-10 -mx-5 sm:-mx-10 lg:-mx-16"&gt;&#10; &lt;img src="https://opensource-odyssey.net/posts/writing-an-awesome-cli-with-typescript/hero.webp"&#10; srcset="https://opensource-odyssey.net/posts/writing-an-awesome-cli-with-typescript/hero_hu_9df608821088f69.webp 480w, https://opensource-odyssey.net/posts/writing-an-awesome-cli-with-typescript/hero_hu_ba2caeeeaf69aec6.webp 640w, https://opensource-odyssey.net/posts/writing-an-awesome-cli-with-typescript/hero_hu_56636b8b0e8a904d.webp 960w, https://opensource-odyssey.net/posts/writing-an-awesome-cli-with-typescript/hero_hu_88c080039686ff13.webp 1200w"&#10; sizes="100vw"&#10; width="1200" height="624"&#10; alt="A hackers terminal on a desk" class="w-full"&#10; fetchpriority="high"&gt;&#10; &lt;/figure&gt;&#10;&lt;p&gt;If you have ever wanted to build a Command Line Interface (short: &lt;code&gt;CLI&lt;/code&gt;) in typescript, this post is for you!&lt;/p&gt;&#10;&lt;p&gt;Granted, &lt;a href="https://www.typescriptlang.org/"&gt;Typescript&lt;/a&gt; is not the most conventional language to do this. Maybe you&amp;rsquo;re better served with &lt;a href="https://go.dev/"&gt;Go&lt;/a&gt; and &lt;a href="https://github.com/spf13/cobra"&gt;Cobra-cli&lt;/a&gt;. But in case TS is your go-to language - like it is for me right now - continue reading.&lt;/p&gt;</description></item><item><title>Configuring Doom Emacs to be your Typescript IDE</title><link>https://opensource-odyssey.net/posts/typescript-ide-doom/</link><pubDate>Sun, 04 Aug 2024 00:00:00 +0000</pubDate><guid>https://opensource-odyssey.net/posts/typescript-ide-doom/</guid><description>&lt;figure class="not-prose my-10 -mx-5 sm:-mx-10 lg:-mx-16"&gt;&#10; &lt;img src="https://opensource-odyssey.net/posts/typescript-ide-doom/hero.webp"&#10; srcset="https://opensource-odyssey.net/posts/typescript-ide-doom/hero_hu_b92ef95e442d5ae6.webp 480w, https://opensource-odyssey.net/posts/typescript-ide-doom/hero_hu_526416be715eb069.webp 640w, https://opensource-odyssey.net/posts/typescript-ide-doom/hero_hu_8e20276083329316.webp 960w, https://opensource-odyssey.net/posts/typescript-ide-doom/hero_hu_465367ce7fb93a3d.webp 1200w"&#10; sizes="100vw"&#10; width="1200" height="624"&#10; alt="A pixel art sunrise behind a giant boulder" class="w-full"&#10; fetchpriority="high"&gt;&#10; &lt;/figure&gt;&#10;&lt;p&gt;For a while I struggled with using Emacs as a IDE for modern web-development. In other words, Typescript, prettier, .tsx files, etc.&lt;/p&gt;&#10;&lt;p&gt;In the end it&amp;rsquo;s not hard, here is how I have my Doom configured:&lt;/p&gt;&#10;&lt;h2 id="settings-in-the-init-dot-el"&gt;settings in the &lt;code&gt;init.el&lt;/code&gt;&lt;/h2&gt;&#10;&lt;p&gt;First up, we have to make sure that we are using the power of a language server protocol (short &lt;code&gt;lsp&lt;/code&gt;). The lsp is a client-server protocol where your IDE is getting all the type-hinting, Intellisense, auto-complete etc from. As far as I understand this, this does &lt;em&gt;not mean you are connected to the Internet, you are hosting the lsp automatically locally&lt;/em&gt;.&lt;/p&gt;</description></item></channel></rss>