@typescript-nameof/types
v0.0.11
Published
Provides type declarations for the use of the TypeScript `nameof` project.
Readme
TypeScript nameof Types
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.
Installation
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/.
