Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
npm install reflect-metadata
```

Alternatively you can include it via CDN:

```html
<script src="https://cdn.jsdelivr.net/npm/reflect-metadata@0/Reflect.min.js"></script>
```

## Background

* Decorators add the ability to augment a class and its members as the class is defined, through a declarative syntax.
Expand Down Expand Up @@ -175,4 +181,4 @@ function ParamTypes(...types) {
* This is mitigated if the mutating decorator returns a class expression that extends from the target, or returns a proxy for the decorator. @rbuckton
* Metadata for a method is attached to the class (or prototype) via the property key. It would not then be available if trying to read metadata on the function of the method (e.g. "tearing-off" the method from the class). @rbuckton

[Metadata-Spec]: https://rbuckton.github.io/reflect-metadata
[Metadata-Spec]: https://rbuckton.github.io/reflect-metadata