An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# nonenumerable [![Build status](https://travis-ci.org/endel/nonenumerable.svg?branch=master)](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