ReactReact 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-OnA 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 PracticesWhen 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 static
to your function’s declaration.
Continue reading →Hands-OnSetting up a TypeScript project with Node.js takes only a few minutes. Here is how to do it the fastest way by just using npm
and yarn
.
Continue reading →Hands-OnExtending the EventEmitter
class from Node.js might cause error TS2307. Here is how to fix it.
Continue reading →New FeaturesTypeScript 3.8 introduces a new functionality which is called top-level await. It allows developers to use the await
keyword without a surrounding async
function at the top level of a module.
Continue reading →Hands-OnLearn how to get the milliseconds of a specified date in your desired timezone.
Continue reading →TestingConfiguring code coverage with TypeScript and Karma to get coverage reports for code running in web browsers.
Continue reading →Hands-OnOverview of main concepts in Electron 4 applications.
Continue reading →TestingLearn 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 →