Typescript Language Complete tutorials and Examples
Typescript is a popular open-source programming scripting language. I have written a lot of articles about typescript language. This is a summary page of all articles in order.
To have a complete understanding of typescript, Please read the below articles complete understanding.
All the posts provide a complete basic understanding of language features and detailed explanations with examples
All the posts are in order feature-wise.
Latest Typescript Update
You can install the latest typescript update using npm install typescript
Latest Typescript version
The latest typescript version is 4.5.4 released in Dec 2021
Typescript🔗 . It includes the following features
- tuple and array types
- types versions
- .then refactor changes
- function declaration changes on properties
It is the latest typescript language and compiler with structural changes and features - Project references, Tuple Types, UnknownType, and API Breaking changes.
Typescript tutorial for Beginners
It is starting an article in the typescript series. It explains why language is required, the advantages, disadvantages of typescript, and the basics of the compilation process. And also provides installation of typescript and tsc command options. It has a basic example of the Hello world demo example.
This tutorial is to provide basic data types of language and their usages and explanations with basic examples.
This article is about String object syntax, usages, and various methods and also has various basic examples.
It has detailed explanations about the Enum declaration and various examples like string and enum conversions.
It has a clear explanation and example usage for typeOf and instanceOf operators in typescript.
Operators - Various operators are listed out here
This blog is about boolean operators with examples.
Various operators with Equality operators examples.
Examples for Bitwise, Assignment, and Comma operators
This post contains the basics of conditional, Negation, and String append operators with examples.
This post is about Array objects with methods tutorials and examples.
Object-Oriented Typescript examples
- Function and Constructor overload
It covers different ways to create an overload of a function and constructor.
- Classes and Objects
This post is about classes, object creation, and inheritance with examples.
It covers the Interface type safety, Optional and readonly tutorials with examples.
- Abstract classes :-
This post, covers Abstract classes, Implements Interfaces, and the static keyword with examples.
- Encapsulation :-
It provides examples of Encapsulation and set/get Accessors methods examples.
- Polymorphism :-
It covers Function Overloading, Overriding, and Interface with examples
- Static Keyword and Constructor
It includes properties or member variables, Constructors, and methods of a class with an example.
- Switch example
- Typescript final keyword
Basic Common Examples
This has clear steps for the conversion of string to number and number to string with examples.
Object Convert in Typescript examples
String to Date or Date to String example
String to Boolean or Boolean to String example This article is finding ways to convert a string to a boolean or boolean to string with examples.
Map JSON to Interface mapping This explained different ways of converting JSON objects to interfaces or classes. This includes JSON custom object, and parent and child object with examples.