Using Typescript types

Typescript comes with his own types and each one is part of typescript, not javascript. Typescript will provide these types as part of our development process and notify the compiler of the data type used and force us to implement properly. Tuples Allows set a variable or array with a set of values of different…

Type Annotations in Typescript Functions.

I am starting to move to Typescript. I discover how works type annotations in typescript functions. Let start to show a few things learned today about typescript. Typescript allows type annotation in function parameters and returns types. Types in Function parameters. The default type for the parameters in functions is any. Use : type after…

Typescript and primitive Types

I am starting to move to Typescript. I discover how it works and different ways to use them with Typescript. Typescript is a superset running up to Javascript, it supports all primitive types. Let start to show a few things learned today about typescript. Typescript and Types. Typescript supports setting variables, properties or parameters in…

Get start with Typescript and Parcel

Typescript is a technology that grows every day. Companies like Slack, Airbnb or Google are changing their javascript codebase to Typescript. Frameworks like Vue, React and (Angular) are using Typescript for writing maintainable code. These steps show how to start a project with Typescript and Parcel. The full code is available https://github.com/danywalls/hello-typescript. Create a basic…

How to create your own typings ?

If there is one thing I have to admit it is that Typescript allows us to feel in control in javascript and that is also thanks to the typings (tsd), but some libraries don’t have the typings, I have found myself in need of writing the typings of the rdjs library. Creating the typings To…