Partial implementation of TC39 reflect-metadata. Primarily for use as a lightweight and function activated implementation shim to the proposal.
npm install @roenlie/reflect-metadataPartial implementation of TC39 reflect-metadata.
Primarily for use as a lightweight and function activated implementation shim to the proposal.
typescript
import { useReflectMetadata } from '@roenlie/reflect-metadata';useReflectMetadata();
`
#### .html
`html
`$3
#### .ts/.js
`typescript
import '@roenlie/reflect-metadata/use';
`
#### .html
`html
`
Repeated calls to
useReflectMetadata` will have no effect.Approximately 3.2kb not-minified, 1.70kb minified, 0.70kb gzipped.