Skip to content

Latest commit

 

History

History

nameof

TypeScript nameof Plugin

Build Status

Allows the use of nameof() calls in TypeScript projects.

This package provides support for nameof() calls for ts-patch, ts-jest, ts-loader, ttypescript and every ecosystem which supports TypeScript TransformerFactorys.

nameof() calls enable you to access the names of variables, properties and types:

console.log(nameof(this));  // Prints `this`

Please check out the project repository to find out more on how to set up TypeScript nameof in your build process.