https://github.com/endel/nonenumerable
Decorator to make properties non-enumerable.
https://github.com/endel/nonenumerable
Last synced: about 1 year ago
JSON representation
Decorator to make properties non-enumerable.
- Host: GitHub
- URL: https://github.com/endel/nonenumerable
- Owner: endel
- License: mit
- Created: 2016-12-13T20:43:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-08T13:31:00.000Z (over 8 years ago)
- Last Synced: 2025-03-30T16:44:12.019Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/nonenumerable
- Size: 4.88 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nonenumerable [](https://travis-ci.org/endel/nonenumerable)
Decorator to make properties non-enumerable.
## Usage
Ensure you have [decorators](https://github.com/wycats/javascript-decorators)
support in your environment. For TypeScript, add `"experimentalDecorators":
true` in your `tsconfig.json`. For Babel, configure [the syntax-decorator
plugin](https://babeljs.io/docs/plugins/syntax-decorators/).
```ts
import { nonenumerable } from "nonenumerable";
class MyClass {
@nonenumerable
property = 5;
}
```
License
---
MIT