1.1.1 • Published 7 years ago
nonenumerable v1.1.1
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