@elsevier/decorators
v1.1.0
Published
A collection of TypeScript decorators
Downloads
5
Maintainers
Keywords
Readme
decorators
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;
}
}