nonenumerable
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

nonenumerable Build status

Decorator to make properties non-enumerable.

Usage

Ensure you have decorators support in your environment. For TypeScript, add "experimentalDecorators": true in your tsconfig.json. For Babel, configure the syntax-decorator plugin.

import { nonenumerable } from "nonenumerable";
 
class MyClass {
    @nonenumerable
    property = 5;
}

License

MIT

Package Sidebar

Install

npm i nonenumerable

Weekly Downloads

2,137

Version

1.1.1

License

MIT

Last publish

Collaborators

  • endel