<?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 CodingBlast</title><link>https://codingblast.com/categories/typescript/</link><description>Recent content in TypeScript on CodingBlast</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Wed, 10 May 2017 18:55:31 +0000</lastBuildDate><atom:link href="https://codingblast.com/categories/typescript/index.xml" rel="self" type="application/rss+xml"/><item><title>Introduction to Angular CLI</title><link>https://codingblast.com/angular-cli/</link><pubDate>Tue, 18 Apr 2017 20:16:40 +0000</pubDate><guid>https://codingblast.com/angular-cli/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;In this post we will get familiar Angular CLI. We will go through some examples and see what kind of things we can do with it and how it can make our life easier and save us some time.&lt;/p&gt;</description></item><item><title>Decorators with TypeScript</title><link>https://codingblast.com/decorators-intro/</link><pubDate>Thu, 06 Apr 2017 10:55:26 +0000</pubDate><guid>https://codingblast.com/decorators-intro/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;JavaScript decorators are a special kind of declaration. Decorators can be attached to both class declaration and class method declaration. Furthermore, they can be attached to accessor and property declaration. Finally, they can also be attached to parameter declaration.&lt;/p&gt;</description></item><item><title>Tuples in TypeScript</title><link>https://codingblast.com/typescript-tuples/</link><pubDate>Mon, 03 Apr 2017 08:31:37 +0000</pubDate><guid>https://codingblast.com/typescript-tuples/</guid><description>&lt;h1 id="tuples-in-typescript"&gt;Tuples in TypeScript&lt;/h1&gt;
&lt;p&gt;With tuples we can define what type of data (variable type) can be stored in every position ( or few starting positions ) inside of an array. Once you define the tuple you can then use it to declare variables.&lt;/p&gt;</description></item><item><title>Intersection types in TypeScript</title><link>https://codingblast.com/typescript-intersection-types/</link><pubDate>Fri, 31 Mar 2017 07:30:12 +0000</pubDate><guid>https://codingblast.com/typescript-intersection-types/</guid><description>&lt;h2 id="intersection-types"&gt;Intersection types&lt;/h2&gt;
&lt;p&gt;Purpose of this post is to get a basic understanding of intersection types and realize pros and cons of intersection types.&lt;/p&gt;
&lt;p&gt;Last time we talked about &lt;a href="https://codingblast.com/typescript-union-types-type-guards-type-aliases/"&gt;union types&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;let x: string | number;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Variable &lt;em&gt;x&lt;/em&gt; can be either &lt;em&gt;string&lt;/em&gt; or a &lt;em&gt;number&lt;/em&gt;. Consequently, you can use type guarding technique to exclude one of the types.&lt;/p&gt;</description></item><item><title>TypeScript - Union types, type guards and type aliases</title><link>https://codingblast.com/typescript-union-types-type-guards-type-aliases/</link><pubDate>Mon, 27 Mar 2017 18:23:11 +0000</pubDate><guid>https://codingblast.com/typescript-union-types-type-guards-type-aliases/</guid><description>&lt;h2 id="union-types"&gt;Union types&lt;/h2&gt;
&lt;p&gt;We can use union types in TypeScript to combine multiple types into one type:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;let text: string | string[];&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Variable &lt;strong&gt;text&lt;/strong&gt; can now be either string or string array which can be pretty handy in some particular cases.&lt;/p&gt;</description></item></channel></rss>