React and TypeScript are a great team because TypeScript supports the JSX syntax. This tutorial will show you code examples on how to type your React web application, so that you can benefit from strong typing in your UI components.Continue reading →Hands-On
A generator function returns a lazy iterator, which generates data only on demand. In the following tutorial, Benny will show you how to code your own generator functions in TypeScript. You will learn the differences between iterators and iterables and how to refactor your code to use generator functions.Continue reading →Best Practices
When developing class functions that don’t rely on an internal state, it’s a good idea to turn them into static methods. This can be easily done by adding the keyword Continue reading →Hands-On
static to your function’s declaration.
Setting up a TypeScript project with Node.js takes only a few minutes. Here is how to do it the fastest way by just using Continue reading →Hands-On
Extending the Continue reading →New Features
EventEmitter class from Node.js might cause error TS2307. Here is how to fix it.
TypeScript 3.8 introduces a new functionality which is called top-level await. It allows developers to use the Continue reading →Hands-On
await keyword without a surrounding
async function at the top level of a module.
Learn how to get the milliseconds of a specified date in your desired timezone.Continue reading →Testing
Configuring code coverage with TypeScript and Karma to get coverage reports for code running in web browsers.Continue reading →Hands-On
Overview of main concepts in Electron 4 applications.Continue reading →Testing
Learn how to include all source files for code coverage reporting in an Electron app. In the following tutorial we will create TypeScript code coverage from Electron’s main and renderer process.Continue reading →