Practical solutions

TypeScript Howtos How-To Guides

Solve the problem. Keep building. Collection of TypeScript how-to articles

Find the answer you need

Browse practical solutions, grouped by the task you're working on.

__COUNT__ entries on this page

How to Sort Array of Objects in TypeScriptThis article shows how to sort array of objects in TypeScript. How to Use ESLint for TypeScript Import OrderingESLint is one of the widely used linter tools. It allows you to order and structure your import section easily. How to Export Statement in TypeScriptThis tutorial demonstrates how to use the export statement in TypeScript. How to Check Interface Type in TypeScriptThis tutorial demonstrates how to check for interface types in TypeScript. How to Watch and Compile All TypeScript SourcesTypeScript is a superset of JavaScript language. The JavaScript engines can only interpret the JavaScript codes. Hence, the transpilation process takes place to convert TypeScript sources to regular JavaScript. The TypeScript compiler has been used to achieve this process. It can be configured to enable watching the source files and compile on the fly when there is a modification happening in source files. The tsconfig.json configuration file is used to override the default behavior of TypeScript compiler. How to Use RxJS With TypeScriptEvent-driven applications are gaining the popularity among web applications. Hence, the event processing becomes a mandatory feature to handle by TypeScript. It supports reactive programming technique with RxJS library. How to Read Text File in TypeScriptNode.js can be used with the TypeScript language that supports type checking and static typing. The fs package is one of the widely used NPM modules that can be used to read system files. This article is about how to read text file in TypeScript. How to Make HTTP Request in TypeScriptWe will demonstrate how to make HTTP request in TypeScript. How to Get Class Name of an Object in TypeScriptThis guide explore methods on how to get the object's class name in TypeScript. How to Extend Window in TypeScriptThe window object is a built-in TypeScript type. Hence, it is not possible to declare new properties or methods directly on this object as in JavaScript. It is recommended to use TypeScript interface merging technique to add properties or methods to the built-in window object. How to Create Table in React TypeScriptWe will demonstrate how to create table in React TypeScript. How to Use Lodash in TypeScriptWe will demonstrate how to use Lodash in TypeScript. How to Ignore Next Line in TypeScriptWe will demonstrate how to ignore the next line in TypeScript. How to Use Mocha in TypeScriptWe will demonstrate how to use Mocha in TypeScript. How to Import Modules in TypeScriptThis tutorial teaches the reader the different ways they can leverage to import modules into their applications. How to Convert String to Boolean in TypeScriptThis tutorial teaches the reader the different ways they can leverage to convert a string data type to a Boolean data type. How to Define an Array in TypeScript InterfaceThis tutorial teaches the reader how to define an array in a TypeScript interface and add elements to the array from a JSON source. How to Create an Empty Array in TypeScriptThis tutorial teaches the reader the different ways they can leverage to create an empty array in TypeScript. How to Use Useref to Call Child Component From Parent Component in React With TypeScriptThis tutorial teaches the reader how to call a child component from a parent component in a React application with TypeScript. Type Casting in JavaScript and TypeScriptThis article discusses type casting or type conversion using different methods in JavaScript and TypeScript. String Interpolation in TypeScriptThis tutorial demonstrates string interpolation in TypeScript with single expression till multiple methods expressions. Exclamation Mark in TypeScriptThis tutorial demonstrates how to use the exclamation mark in TypeScript. Interface vs. Class in TypeScriptThis tutorial points out the differences between interfaces and classes in TypeScript. OnClick Event Type in TypeScriptThis tutorial demonstates how to use onClick event type in TypeScript.