1.1.1 • Published 7 years ago

nonenumerable v1.1.1

Weekly downloads
1,822
License
MIT
Repository
github
Last release
7 years ago

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