nonenumerable
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

nonenumerable Build status

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

/nonenumerable/

    Package Sidebar

    Install

    npm i nonenumerable

    Weekly Downloads

    1,440

    Version

    1.1.1

    License

    MIT

    Last publish

    Collaborators

    • endel