Decorator to make properties non-enumerable.
npm install nonenumerableDecorator to make properties non-enumerable.
Ensure you have decorators
support in your environment. For TypeScript, add "experimentalDecorators": in your
truetsconfig.json. For Babel, configure the syntax-decorator
plugin.
``ts
import { nonenumerable } from "nonenumerable";
class MyClass {
@nonenumerable
property = 5;
}
``
License
---
MIT