HomeBlogSnippets

typescript

Posts

ESLint Global Variables

When we use some global variables defined elsewhere, eslint throws an error saying the variable is not defined. Here is how to configure eslint to ignore those.

Extend Window type with Typescript

Some of the object properties or functions are not available in the Typescript Window type. Let see a way to extend the Window type with the missing properties.

Snippets

Make only part of Typescript properties required

Making all properties of a type or an interface required is easy with the `Required` TypeScript utility. Let's make only part of the optional properties required.

Make only part of Typescript properties required

Typescript Project Dockerfile

A Dockerfile to build production-ready Typescript docker image.

Typescript Project Dockerfile

Rename the extension of multiple files with bash script on Mac and Linux

A bash script snippet to rename recursively multiples files extension from the current directory.

Rename the extension of multiple files with bash script on Mac and Linux

HomeRSS
TwitterGitHub
Uses