metadata package
A package with utilities to help developers implement TypeScript decorators, define/merge metadata, and inspect metadata.
Remarks
Utilities:
- Reflector: Wrapper of reflect-metadata. - Decorator factories: A set of factories for class/method/property/parameter decorators to apply metadata to a given class and its static or instance members. - MetadataInspector: High level APIs to inspect a class and/or its members to get metadata applied by decorators.
Classes
| Class | Description |
|---|---|
|
Factory for class decorators | |
|
Base factory class for decorator functions | |
|
A strongly-typed metadata accessor via reflection | |
|
Inspector for metadata applied by decorators | |
|
Factory for method decorators | |
|
Factory for an append-array of method-level decorators The | |
|
Factory for method level parameter decorator. | |
|
Factory for parameter decorators | |
|
Factory for property decorators |
Interfaces
| Interface | Description |
|---|---|
|
Options for a decorator | |
|
Design time metadata for a method. | |
|
Options for inspection | |
|
An object mapping keys to corresponding metadata |
Variables
| Variable | Description |
|---|---|
Type Aliases
| Type Alias | Description |
|---|---|
|
Decorator function types | |
|
Key for metadata access via reflection |