Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork16
Lightweight (3K) ES Module implementation of reflect-metadata
License
abraham/reflection
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Lightweight ES Module implementation ofreflect-metadata to work with TypeScript'sexperimental decorator support.
The main reason for this library is to provide a much smaller implementation that can be included as a module.
- ES module
reflection
can be loaded with<script type="module" src="..."></script>
- Size (uncompressed)
reflect-metadata
is ~50Kcore-js/es7/reflect
is ~80K@abraham/reflection
is ~3K
Read about how todrop 20K from your production Angular app by switching to this.
npm install @abraham/reflection
import'@abraham/reflection';Reflect.defineMetadata(metadataKey,metadataValue,target);
You can also importReflection
:
import{ReflectionasReflect}from'@abraham/reflection';Reflect.defineMetadata(metadataKey,metadataValue,target);
Reflection does not currently cover the complete API surface of reflect-metadata. The following methods are available:
Reflect.decorate(...);Reflect.defineMetadata(...);Reflect.getMetadata(...);Reflect.hasMetadata(...);Reflect.getOwnMetadata(...);Reflect.hasOwnMetadata(...);Reflect.metadata(...);
About
Lightweight (3K) ES Module implementation of reflect-metadata
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors10
Uh oh!
There was an error while loading.Please reload this page.