nameof-ts5.macro
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

nameof-ts5.macro

Setup

  1. Install dependencies:
npm install --save-dev babel-plugin-macros nameof-ts5.macro
  1. Ensure babel-plugin-macros is properly setup (Instructions).

  2. Import and use the default export. For example:

import nameof from "nameof-ts5.macro";

nameof(window.alert);

Transforms to:

"alert";

Transforms

Read here

Other

Package Sidebar

Install

npm i nameof-ts5.macro

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

10.3 kB

Total Files

5

Last publish

Collaborators

  • ikoofi