TypeScript Tutorial for beginners

Showing posts with label TypeScript Tutorial for beginners. Show all posts

An interface in TypeScript contains only the declaration of the methods and properties, but not the implementation. It is the responsibility of the class that implements the interface by providing implementation for all the members of the interface.

 

Today, in this TypeScript Tutorial, we will learn how to work with Interfaces in TypeScript. Continue reading to learn more.

Published by on under CodeProject | DZone

Just like any other OOPs supported languages, TypeScript also allows you to inherit a base class. In the last article, we learned how to create class in TypeScript. We have also learned how to create a constructor and how to instantiate a class object.

 

In this article of the TypeScript Tutorial for beginners series, we will learn how to inherit a TypeScript class. Continue reading to learn it today.

Published by on under CodeProject | DZone

Earlier in the TypeScript Tutorial series (Getting started with TypeScript) we learnt about the TypeScript configuration file, variable declaration and basic data types. I hope that was neat and clear to understand the very basics of TypeScript.

 

Today in this article, we will learn how to define a class and instantiate class object. Continue reading to learn about it today.

Published by on under CodeProject | DZone

Like JavaScript and any other languages, TypeScript also provides basic data types to handle numbers, strings etc. Some common data types in TypeScript are: number, string, boolean, enum, void, null, undefined, any, never, Array and tuple.

 

Let's learn more about these basic data types of TypeScript, which you will need to use always. Let's learn with suitable examples.

Published by on under CodeProject | DZone

In the previous few chapters of the TypeScript Tutorial series we have learned how to install TypeScript and then begin with creating a simple HelloWorld application. We have also learned about TypeScript configuration file (tsconfig.json).

 

In this chapter we will learn various ways to declare variables in TypeScript. Continue reading to learn more about it.

Published by on under CodeProject | DZone

The tsconfig.json file allows you to specify the root level files and the compiler options that requires to compile a TypeScript project. The presence of this file in a directory specifies that the said directory is the TypeScript project root.

 

In this chapter of the TypeScript Tutorial series we will learn about tsconfig.json, it's various properties and how to extend it.

Published by on under CodeProject | DZone

If you have read the previous chapter of the TypeScript Tutorial series, you have already learned how to install Node.js and TypeScript and might have already installed those. Now, it's the time to go a step further to learn how to write code in TpeScript.

 

In this article, we will learn how to create a simple HelloWorld application, compile it and run it. Continue reading to know more.

Published by on under CodeProject | DZone

TypeScript is an open-source programming language, developed and maintained by Microsoft, and hosted in GitHub. TypeScript is a superset of JavaScript and can be used to develop JavaScript applications for both client-side and server-side.

 

This post will cover how to install Node.js and then proceed with installation of TypeScript using the Node Package Manager.

Published by on under CodeProject | DZone