Articles tagged in: TypeScript



How to Allow Trailing Commas (Comma-Dangle) With Typescript-ESLint

ESLint comes with support to require or disallow trailing commas. This option is also known as “comma-dangle”. Trailing commas are supported in JavaScript by ECMAScript v5. Here’s a simple example: const futurestudio = { team: ['Marcus', 'Norman', 'Christian'], } The comma after team: ['Marcus', 'Norman', 'Christian'], is a trailing comma. This tutorial …

Continue Reading

TypeScript — How to Export Transpiled Code From package.json

TypeScript is gaining popularity in the JavaScript ecosystem. Package authors may choose TypeScript over JavaScript to automatically create type definitions. These type definitions will then be exported with the package and be available when importing the package in another project. This tutorial shows you how to export the transpiled TypeScript …

Continue Reading

Android Custom Fonts Renewed — Font Family

In the last tutorial, we've explored the modern way of implementing custom fonts on Android. However, it broke the support for dynamically changing the font style and weights (for example, bold or italic). In this tutorial, we'll fix this drawback and configure a font family with different styles. {{outline}} {{video} …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.