@inversifyjs/reflect-metadata-utils
Version:
Reflect metadata utils
3 lines (2 loc) • 962 B
JavaScript
function t(t){return n=>(n.push(...t),n)}function n(t){return n=>(n.push(t),n)}function e(t,n){return e=>(e[n]=t,e)}function u(){return[]}function f(){return new Map}function r(){return new Set}function c(t,n,e){return Reflect.getOwnMetadata(n,t,e)}function o(t,n,e){return Reflect.getMetadata(n,t,e)}function a(t,n,e,u){Reflect.defineMetadata(n,e,t,u)}function i(t,n,e,u,f){const r=u(c(t,n,f)??e());Reflect.defineMetadata(n,r,t,f)}function d(t,n,e,u,f){const r=u(o(t,n,f)??e());Reflect.defineMetadata(n,r,t,f)}function M(t){return n=>{for(const e of t)n.add(e);return n}}export{t as buildArrayMetadataWithArray,n as buildArrayMetadataWithElement,e as buildArrayMetadataWithIndex,u as buildEmptyArrayMetadata,f as buildEmptyMapMetadata,r as buildEmptySetMetadata,c as getOwnReflectMetadata,o as getReflectMetadata,a as setReflectMetadata,i as updateOwnReflectMetadata,d as updateReflectMetadata,M as updateSetMetadataWithList};
//# sourceMappingURL=index.js.map