nonenumerable
v1.1.1
Published
Decorator to make properties non-enumerable.
Downloads
21,620
Maintainers
Readme
nonenumerable
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