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 Import JSON File in TypeScriptThis tutorial provides the deep dive guidelines for importing JSON files in TypeScript. Each step demonstrates the solution of importing JSON files in TypeScript. How to Use Regex in TypeScriptThis tutorial demonstrates how to use Regex in TypeScript How to Handle Exceptions Using try..catch..finally in TypeScriptThis article elaborates how to do exception handling in TypeScript using try..catch..finally with examples. How to Check if a String Is Present in a TypeScript ArrayThis tutorial demonstrates how to check if a string is present in an array in TypeScript. How to Format Date and Time in TypeScriptThis tutorial introduces the built-in object Date() and discusses the various methods to get, set, and format the date and time in Typescript. How to Declare Array of Objects in TypeScriptThis tutorial discusses the way of declaring an array in TypeScript which is array of objects and to implement using TypeScript. How to Use jQuery With TypeScriptThis tutorial provides the basic understanding and concept of using jQuery with TypeScript. How to Remove an Array Item in TypeScriptRemoval of array items in TypeScript using several methods and differences between them. How to Create an Object From Interface in TypeScriptThis tutorial demonstrates how an Object can be created from Interface Definition in TypeScript. How to Use React UseState Hook in TypeScriptThis tutorial demonstrates how to use the React useState hook in TypeScript. How to Use Refs in React With TypeScriptThis tutorial guideline provides a brief explanation about how to use Refs in React with TypeScript. How to Return a Promise in TypeScriptThis tutorial discusses how to return a proper Promise in TypeScript. This will provide complete coding examples of Returns promise in TypeScript with complete demonstration of each and every single step. How to Get and Set in TypeScriptThis tutorial demonstrates the get and set properties of the class and how to implement it in TypeScript. How to Return Type for setTimeout in TypeScriptThis article provides explanation of the setTimeout() function in TypeScript, how to use it, and the return types associated with it in TypeScript. How to Overload Constructors in TypeScriptThis tutorial demonstrates how to overload constructors in TypeScript. How to Update TypeScript to the Latest Version Using Node Package ManagerThis tutorial illustrates updating to the latest version of TypeScript with npm. This will provide complete practical example for how to update TypeScript to latest version using npm. How to Sorting Array in TypeScriptThis tutorial demonstrates the ways of sorting arrays in TypeScript. How to Exclude Property in TypeScriptThis tutorial demonstrates excluding properties from types in TypeScript. How to Declare an ES6 Map in TypeScriptThis tutorial illustrates how an ES6 map in TypeScript can be defined. This will provide complete coding examples of ES6 map in TypeScript with complete demonstration of each and every single step. How to Convert String to Enum in TypeScriptThis tutorial demonstrates Enum datatype declaration in TypeScript. How to Interface Default Value in TypeScriptThis tutorial guideline provides the core concepts of TypeScript Interface and also defining the default values for the Interface in TypeScript with coding examples and implementation. How to Use the keyof Operator in TypeScriptThis article demonstrates how to use the keyof operator in TypeScript. How to Check for Both Null and Undefined in TypeScriptNullish coalescing and Optional chaining are two methods which can be used to identify null and undefined as there is no direct function to check null and undefined in TypeScript. How to Return Type of a Function in TypeScriptThis tutorial demonstrates how to determine the return type of a function in TypeScript.