1.1.0 • Published 6 years ago

@elsevier/decorators v1.1.0

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

decorators

Build Status

A collection of TypeScript decorators

Enabling support in tsconfig.json

To enable support for decorators you will need to add "experimentalDecorators": true to your tsconfig.json file.

Available decorators

enumerable

Example:

import { enumerable } from '@elsevier/decorators';

class Example {
    private isValid: boolean = true;

    @enumerable
    get validity(): boolean {
        return this.isValid;
    }
}
1.1.0

6 years ago

1.0.0

6 years ago