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
Page 1 of 1

Explore the Library

Find interesting tutorials and solutions for your problems.