<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Edison R. Sanchez on Medium]]></title>
        <description><![CDATA[Stories by Edison R. Sanchez on Medium]]></description>
        <link>https://medium.com/@edisonrsanchez?source=rss-a8f3ee0cf2b6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*zmTvYOdhtxzRDRwQ</url>
            <title>Stories by Edison R. Sanchez on Medium</title>
            <link>https://medium.com/@edisonrsanchez?source=rss-a8f3ee0cf2b6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 07:18:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@edisonrsanchez/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Migrando de Javascript a TypeScript v0.0.1]]></title>
            <link>https://medium.com/@edisonrsanchez/migrando-de-javascript-a-typescript-v0-0-1-23d9a40ec36a?source=rss-a8f3ee0cf2b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/23d9a40ec36a</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[typescript]]></category>
            <dc:creator><![CDATA[Edison R. Sanchez]]></dc:creator>
            <pubDate>Fri, 26 Jun 2020 19:14:22 GMT</pubDate>
            <atom:updated>2020-06-26T19:38:04.136Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-TYq_NZDOXvISiAcrCJSWg.png" /></figure><p>Dentro de todas las pruebas de diferentes tecnologías que a diario realizo he encontrado que TypeScript es una herramienta que continúa bloqueandome de no aprenderla rápidamente. A continuación una serie de información paso a paso cómo he ido migrando mi concepto y aprendimiento de JavaScript a TypeScript.</p><h3><strong>INSTALANDO</strong></h3><p>Inicialmente la instalación del protocolo es supremamente fácil, lo único que se debe hacer ejecutar la instalación directamente desde la consola.</p><p>npm install -g typescript</p><p>Antes de iniciar con pruebas entender que Typescript extiende a Javascript, es un JavaScript con esteroides; así que no te asustes como me pasaba a mi.</p><h3><strong>JavaScript</strong></h3><p>Tomando un ejemplo directamente en Javascript.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/29cd1c1adbe837581133d5f056b78464/href">https://medium.com/media/29cd1c1adbe837581133d5f056b78464/href</a></iframe><p>Typescript incluye fundamentalmente la definición del Tipo (Type) de datos, por ejemplo en los argumentos.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/29c9c44624f0f80412d23b48b95c1198/href">https://medium.com/media/29c9c44624f0f80412d23b48b95c1198/href</a></iframe><p>Esto permite obtener un error en el ejemplo arriba mencionado:</p><pre>error TS2345: Argument of type ‘number[]’ is not assignable to parameter of type ‘string’.</pre><p>Esto debido a que estoy pasando un arreglo de números a un argumento previamente definido como String.</p><h3><strong>Interfaces</strong></h3><p>La creación de interfaces es una adición a nuestro codigo en Javascript:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b7d257b36051654392ce878d10a010ab/href">https://medium.com/media/b7d257b36051654392ce878d10a010ab/href</a></iframe><h3><strong>Clases</strong></h3><p>De igual manera la definición de los tipos de atributos en las clases.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/81bdcbd681a8daa91b506e4e15cd06d0/href">https://medium.com/media/81bdcbd681a8daa91b506e4e15cd06d0/href</a></iframe><p>Continuare en un próximo post tratando de aplicar esto a React.</p><p><a href="https://github.com/Edisonsan/typescript">Ver código de Ejemplo en GitHub!!!</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23d9a40ec36a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>