reflect-metadata
reflect-metadata copied to clipboard
Prototype for a Metadata Reflection API for ECMAScript
```ts function Deco(){ return {} } @Deco() class Foo{} ``` TS allows decorator returns any value. When `Reflect.decorate` defined by reflect-metadata, TS will use this function to define metadata instead...
I'm using [reflect-metadata](https://github.com/rbuckton/reflect-metadata) in a SvelteKit project, and it's working great 👍 I have a warning at the start: ` reflect-metadata doesn't appear to be written in CJS, but also...
- Added link to Traceur in README file.
I have a question regarding circular dependencies. I have an example [here](https://github.com/SamJust/reflect-circular-dependency/tree/master). The fact that confuses me, is that I only get one of the types undefined. When the built...
When multiple instances extends from the same base class that has decorated properties. Children decorators 'pollutes' parent metadata. They were also attached to parent prototype. Example: following decorators use `reflect-metadata`...
The ECMA language specification has been released: https://262.ecma-international.org/6.0/#sec-reflect.get In order to avoid confusing, you can archive this repo. The final specification not fully use syntax with this repo mentioned. I...
'indexOf' was not used rigorously, version @0.1.13; When implementing the Map (line 1001), the '_find' method is determined by the fact that if 'NaN' is used as the key, will...
This adds a `reflect-metadata/no-conflict` module that can be imported rather than relying on mutation of the global `Reflect` object. This can be used with TypeScript's `__metadata` helper when *not* using...
Related: - https://github.com/microsoft/TypeScript/issues/43463 - https://github.com/endojs/endo/issues/612 The various APIs added to `Reflect` by `reflect-metadata` are incompatible with SES. One option is to introduce an "importable" version that can still work with...
Using this in a Firefox webextension content script will cause an error on the 4th line of makeExporter "Not allowed to define cross-origin object as property on [Object] or [Array]...