Provides type declarations for the use of the TypeScript nameof project.
TypeScript nameof enables you to use nameof() calls to determine the name of variables, properties and types:
console.log(nameof(console)); // Prints `console`To find out more on how to set up TypeScript nameof in your project, head to the project repository.
Install this package using the following command:
npm install --save-dev @types/nameof@npm:@typescript-nameof/typesTake note that this package is installed as if it were named @types/nameof.
This is made because TypeScript will only automatically pick up types from packages that are named @types/*.
You could actually use any name you like to as long as it starts with @types/.