@tsed/core 6.88.1 → 6.89.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{decorators → cjs/decorators}/configurable.d.ts +0 -0
- package/lib/cjs/decorators/configurable.js +18 -0
- package/lib/cjs/decorators/configurable.js.map +1 -0
- package/lib/{decorators → cjs/decorators}/deprecated.d.ts +0 -0
- package/lib/cjs/decorators/deprecated.js +43 -0
- package/lib/cjs/decorators/deprecated.js.map +1 -0
- package/lib/{decorators → cjs/decorators}/enumerable.d.ts +0 -0
- package/lib/cjs/decorators/enumerable.js +18 -0
- package/lib/cjs/decorators/enumerable.js.map +1 -0
- package/lib/{decorators → cjs/decorators}/index.d.ts +0 -0
- package/lib/cjs/decorators/index.js +18 -0
- package/lib/cjs/decorators/index.js.map +1 -0
- package/lib/{decorators → cjs/decorators}/notConfigurable.d.ts +0 -0
- package/lib/cjs/decorators/notConfigurable.js +13 -0
- package/lib/cjs/decorators/notConfigurable.js.map +1 -0
- package/lib/{decorators → cjs/decorators}/notEnumerable.d.ts +0 -0
- package/lib/cjs/decorators/notEnumerable.js +13 -0
- package/lib/cjs/decorators/notEnumerable.js.map +1 -0
- package/lib/{decorators → cjs/decorators}/readOnly.d.ts +0 -0
- package/lib/cjs/decorators/readOnly.js +13 -0
- package/lib/cjs/decorators/readOnly.js.map +1 -0
- package/lib/{decorators → cjs/decorators}/storeFn.d.ts +0 -0
- package/lib/cjs/decorators/storeFn.js +22 -0
- package/lib/cjs/decorators/storeFn.js.map +1 -0
- package/lib/{decorators → cjs/decorators}/storeMerge.d.ts +0 -0
- package/lib/cjs/decorators/storeMerge.js +11 -0
- package/lib/cjs/decorators/storeMerge.js.map +1 -0
- package/lib/{decorators → cjs/decorators}/storeSet.d.ts +0 -0
- package/lib/cjs/decorators/storeSet.js +11 -0
- package/lib/cjs/decorators/storeSet.js.map +1 -0
- package/lib/{decorators → cjs/decorators}/writable.d.ts +0 -0
- package/lib/cjs/decorators/writable.js +18 -0
- package/lib/cjs/decorators/writable.js.map +1 -0
- package/lib/{domain → cjs/domain}/AnyToPromise.d.ts +0 -0
- package/lib/cjs/domain/AnyToPromise.js +148 -0
- package/lib/cjs/domain/AnyToPromise.js.map +1 -0
- package/lib/{domain → cjs/domain}/DecoratorTypes.d.ts +0 -0
- package/lib/cjs/domain/DecoratorTypes.js +15 -0
- package/lib/cjs/domain/DecoratorTypes.js.map +1 -0
- package/lib/{domain → cjs/domain}/Env.d.ts +0 -0
- package/lib/cjs/domain/Env.js +19 -0
- package/lib/cjs/domain/Env.js.map +1 -0
- package/lib/{domain → cjs/domain}/Hooks.d.ts +0 -0
- package/lib/cjs/domain/Hooks.js +89 -0
- package/lib/cjs/domain/Hooks.js.map +1 -0
- package/lib/{domain → cjs/domain}/Metadata.d.ts +0 -0
- package/lib/cjs/domain/Metadata.js +508 -0
- package/lib/cjs/domain/Metadata.js.map +1 -0
- package/lib/{domain → cjs/domain}/Store.d.ts +0 -0
- package/lib/cjs/domain/Store.js +157 -0
- package/lib/cjs/domain/Store.js.map +1 -0
- package/lib/{domain → cjs/domain}/Type.d.ts +0 -0
- package/lib/cjs/domain/Type.js +7 -0
- package/lib/cjs/domain/Type.js.map +1 -0
- package/lib/{domain → cjs/domain}/index.d.ts +0 -0
- package/lib/cjs/domain/index.js +11 -0
- package/lib/cjs/domain/index.js.map +1 -0
- package/lib/{errors → cjs/errors}/UnsupportedDecoratorType.d.ts +0 -0
- package/lib/cjs/errors/UnsupportedDecoratorType.js +21 -0
- package/lib/cjs/errors/UnsupportedDecoratorType.js.map +1 -0
- package/lib/{index.d.ts → cjs/index.d.ts} +0 -0
- package/lib/cjs/index.js +9 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/{interfaces → cjs/interfaces}/AnyDecorator.d.ts +0 -0
- package/lib/cjs/interfaces/AnyDecorator.js +3 -0
- package/lib/cjs/interfaces/AnyDecorator.js.map +1 -0
- package/lib/{interfaces → cjs/interfaces}/DecoratorParameters.d.ts +0 -0
- package/lib/cjs/interfaces/DecoratorParameters.js +3 -0
- package/lib/cjs/interfaces/DecoratorParameters.js.map +1 -0
- package/lib/{interfaces → cjs/interfaces}/HashOf.d.ts +0 -0
- package/lib/cjs/interfaces/HashOf.js +3 -0
- package/lib/cjs/interfaces/HashOf.js.map +1 -0
- package/lib/{interfaces → cjs/interfaces}/MetadataTypes.d.ts +0 -0
- package/lib/cjs/interfaces/MetadataTypes.js +3 -0
- package/lib/cjs/interfaces/MetadataTypes.js.map +1 -0
- package/lib/{interfaces → cjs/interfaces}/ValueOf.d.ts +0 -0
- package/lib/cjs/interfaces/ValueOf.js +3 -0
- package/lib/cjs/interfaces/ValueOf.js.map +1 -0
- package/lib/{interfaces → cjs/interfaces}/index.d.ts +0 -0
- package/lib/cjs/interfaces/index.js +3 -0
- package/lib/cjs/interfaces/index.js.map +1 -0
- package/lib/{utils → cjs/utils}/catchError.d.ts +0 -0
- package/lib/cjs/utils/catchError.js +22 -0
- package/lib/cjs/utils/catchError.js.map +1 -0
- package/lib/{utils → cjs/utils}/decorators/decorateMethodsOf.d.ts +0 -0
- package/lib/cjs/utils/decorators/decorateMethodsOf.js +23 -0
- package/lib/cjs/utils/decorators/decorateMethodsOf.js.map +1 -0
- package/lib/{utils → cjs/utils}/decorators/decoratorArgs.d.ts +0 -0
- package/lib/cjs/utils/decorators/decoratorArgs.js +9 -0
- package/lib/cjs/utils/decorators/decoratorArgs.js.map +1 -0
- package/lib/{utils → cjs/utils}/decorators/decoratorTypeOf.d.ts +0 -0
- package/lib/cjs/utils/decorators/decoratorTypeOf.js +23 -0
- package/lib/cjs/utils/decorators/decoratorTypeOf.js.map +1 -0
- package/lib/{utils → cjs/utils}/decorators/inheritedDescriptorOf.d.ts +0 -0
- package/lib/cjs/utils/decorators/inheritedDescriptorOf.js +15 -0
- package/lib/cjs/utils/decorators/inheritedDescriptorOf.js.map +1 -0
- package/lib/{utils → cjs/utils}/decorators/useDecorators.d.ts +0 -0
- package/lib/cjs/utils/decorators/useDecorators.js +14 -0
- package/lib/cjs/utils/decorators/useDecorators.js.map +1 -0
- package/lib/{utils → cjs/utils}/decorators/useMethodDecorators.d.ts +0 -0
- package/lib/cjs/utils/decorators/useMethodDecorators.js +15 -0
- package/lib/cjs/utils/decorators/useMethodDecorators.js.map +1 -0
- package/lib/{utils → cjs/utils}/imports/importPackage.d.ts +0 -0
- package/lib/cjs/utils/imports/importPackage.js +35 -0
- package/lib/cjs/utils/imports/importPackage.js.map +1 -0
- package/lib/{utils → cjs/utils}/index.d.ts +0 -0
- package/lib/cjs/utils/index.js +18 -0
- package/lib/cjs/utils/index.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/ancestorOf.d.ts +0 -0
- package/lib/cjs/utils/objects/ancestorOf.js +12 -0
- package/lib/cjs/utils/objects/ancestorOf.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/ancestorsOf.d.ts +0 -0
- package/lib/cjs/utils/objects/ancestorsOf.js +22 -0
- package/lib/cjs/utils/objects/ancestorsOf.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/classOf.d.ts +0 -0
- package/lib/cjs/utils/objects/classOf.js +23 -0
- package/lib/cjs/utils/objects/classOf.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/cleanObject.d.ts +0 -0
- package/lib/cjs/utils/objects/cleanObject.js +24 -0
- package/lib/cjs/utils/objects/cleanObject.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/constructorOf.d.ts +0 -0
- package/lib/cjs/utils/objects/constructorOf.js +20 -0
- package/lib/cjs/utils/objects/constructorOf.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/createInstance.d.ts +0 -0
- package/lib/cjs/utils/objects/createInstance.js +9 -0
- package/lib/cjs/utils/objects/createInstance.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/deepClone.d.ts +0 -0
- package/lib/cjs/utils/objects/deepClone.js +57 -0
- package/lib/cjs/utils/objects/deepClone.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/deepExtends.d.ts +0 -0
- package/lib/cjs/utils/objects/deepExtends.js +79 -0
- package/lib/cjs/utils/objects/deepExtends.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/deepMerge.d.ts +0 -0
- package/lib/cjs/utils/objects/deepMerge.js +63 -0
- package/lib/cjs/utils/objects/deepMerge.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/descriptorOf.d.ts +0 -0
- package/lib/cjs/utils/objects/descriptorOf.js +19 -0
- package/lib/cjs/utils/objects/descriptorOf.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/getClassOrSymbol.d.ts +0 -0
- package/lib/cjs/utils/objects/getClassOrSymbol.js +10 -0
- package/lib/cjs/utils/objects/getClassOrSymbol.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/getConstructorArgNames.d.ts +0 -0
- package/lib/cjs/utils/objects/getConstructorArgNames.js +9 -0
- package/lib/cjs/utils/objects/getConstructorArgNames.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/getEnumerableKeys.d.ts +0 -0
- package/lib/cjs/utils/objects/getEnumerableKeys.js +20 -0
- package/lib/cjs/utils/objects/getEnumerableKeys.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/getValue.d.ts +0 -0
- package/lib/cjs/utils/objects/getValue.js +49 -0
- package/lib/cjs/utils/objects/getValue.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/index.d.ts +0 -0
- package/lib/cjs/utils/objects/index.js +47 -0
- package/lib/cjs/utils/objects/index.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isArray.d.ts +0 -0
- package/lib/cjs/utils/objects/isArray.js +23 -0
- package/lib/cjs/utils/objects/isArray.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isArrowFn.d.ts +0 -0
- package/lib/cjs/utils/objects/isArrowFn.js +9 -0
- package/lib/cjs/utils/objects/isArrowFn.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isBoolean.d.ts +0 -0
- package/lib/cjs/utils/objects/isBoolean.js +17 -0
- package/lib/cjs/utils/objects/isBoolean.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isClass.d.ts +0 -0
- package/lib/cjs/utils/objects/isClass.js +26 -0
- package/lib/cjs/utils/objects/isClass.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isCollection.d.ts +0 -0
- package/lib/cjs/utils/objects/isCollection.js +22 -0
- package/lib/cjs/utils/objects/isCollection.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isDate.d.ts +0 -0
- package/lib/cjs/utils/objects/isDate.js +13 -0
- package/lib/cjs/utils/objects/isDate.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isEmpty.d.ts +0 -0
- package/lib/cjs/utils/objects/isEmpty.js +14 -0
- package/lib/cjs/utils/objects/isEmpty.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isEnumerable.d.ts +0 -0
- package/lib/cjs/utils/objects/isEnumerable.js +22 -0
- package/lib/cjs/utils/objects/isEnumerable.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isFunction.d.ts +0 -0
- package/lib/cjs/utils/objects/isFunction.js +8 -0
- package/lib/cjs/utils/objects/isFunction.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isInheritedFrom.d.ts +0 -0
- package/lib/cjs/utils/objects/isInheritedFrom.js +26 -0
- package/lib/cjs/utils/objects/isInheritedFrom.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isNil.d.ts +0 -0
- package/lib/cjs/utils/objects/isNil.js +8 -0
- package/lib/cjs/utils/objects/isNil.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isNumber.d.ts +0 -0
- package/lib/cjs/utils/objects/isNumber.js +17 -0
- package/lib/cjs/utils/objects/isNumber.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isObject.d.ts +0 -0
- package/lib/cjs/utils/objects/isObject.js +8 -0
- package/lib/cjs/utils/objects/isObject.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isObservable.d.ts +0 -0
- package/lib/cjs/utils/objects/isObservable.js +8 -0
- package/lib/cjs/utils/objects/isObservable.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isPlainObject.d.ts +0 -0
- package/lib/cjs/utils/objects/isPlainObject.js +18 -0
- package/lib/cjs/utils/objects/isPlainObject.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isPrimitive.d.ts +0 -0
- package/lib/cjs/utils/objects/isPrimitive.js +30 -0
- package/lib/cjs/utils/objects/isPrimitive.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isPromise.d.ts +0 -0
- package/lib/cjs/utils/objects/isPromise.js +16 -0
- package/lib/cjs/utils/objects/isPromise.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isProtectedKey.d.ts +0 -0
- package/lib/cjs/utils/objects/isProtectedKey.js +12 -0
- package/lib/cjs/utils/objects/isProtectedKey.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isSerializable.d.ts +0 -0
- package/lib/cjs/utils/objects/isSerializable.js +13 -0
- package/lib/cjs/utils/objects/isSerializable.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isStream.d.ts +0 -0
- package/lib/cjs/utils/objects/isStream.js +8 -0
- package/lib/cjs/utils/objects/isStream.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isString.d.ts +0 -0
- package/lib/cjs/utils/objects/isString.js +16 -0
- package/lib/cjs/utils/objects/isString.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isSymbol.d.ts +0 -0
- package/lib/cjs/utils/objects/isSymbol.js +16 -0
- package/lib/cjs/utils/objects/isSymbol.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/methodsOf.d.ts +0 -0
- package/lib/cjs/utils/objects/methodsOf.js +25 -0
- package/lib/cjs/utils/objects/methodsOf.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/nameOf.d.ts +0 -0
- package/lib/cjs/utils/objects/nameOf.js +32 -0
- package/lib/cjs/utils/objects/nameOf.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/objectKeys.d.ts +0 -0
- package/lib/cjs/utils/objects/objectKeys.js +9 -0
- package/lib/cjs/utils/objects/objectKeys.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/primitiveOf.d.ts +0 -0
- package/lib/cjs/utils/objects/primitiveOf.js +20 -0
- package/lib/cjs/utils/objects/primitiveOf.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/prototypeOf.d.ts +0 -0
- package/lib/cjs/utils/objects/prototypeOf.js +14 -0
- package/lib/cjs/utils/objects/prototypeOf.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/setValue.d.ts +0 -0
- package/lib/cjs/utils/objects/setValue.js +34 -0
- package/lib/cjs/utils/objects/setValue.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/toMap.d.ts +0 -0
- package/lib/cjs/utils/objects/toMap.js +32 -0
- package/lib/cjs/utils/objects/toMap.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/toStringConstructor.d.ts +0 -0
- package/lib/cjs/utils/objects/toStringConstructor.js +12 -0
- package/lib/cjs/utils/objects/toStringConstructor.js.map +1 -0
- package/lib/{utils → cjs/utils}/proxyDelegation.d.ts +0 -0
- package/lib/cjs/utils/proxyDelegation.js +54 -0
- package/lib/cjs/utils/proxyDelegation.js.map +1 -0
- package/lib/{utils → cjs/utils}/uniq.d.ts +0 -0
- package/lib/cjs/utils/uniq.js +16 -0
- package/lib/cjs/utils/uniq.js.map +1 -0
- package/lib/esm/decorators/configurable.js +14 -0
- package/lib/esm/decorators/configurable.js.map +1 -0
- package/lib/esm/decorators/deprecated.js +39 -0
- package/lib/esm/decorators/deprecated.js.map +1 -0
- package/lib/esm/decorators/enumerable.js +14 -0
- package/lib/esm/decorators/enumerable.js.map +1 -0
- package/lib/esm/decorators/index.js +15 -0
- package/lib/esm/decorators/index.js.map +1 -0
- package/lib/esm/decorators/notConfigurable.js +9 -0
- package/lib/esm/decorators/notConfigurable.js.map +1 -0
- package/lib/esm/decorators/notEnumerable.js +9 -0
- package/lib/esm/decorators/notEnumerable.js.map +1 -0
- package/lib/esm/decorators/readOnly.js +9 -0
- package/lib/esm/decorators/readOnly.js.map +1 -0
- package/lib/esm/decorators/storeFn.js +18 -0
- package/lib/esm/decorators/storeFn.js.map +1 -0
- package/lib/esm/decorators/storeMerge.js +7 -0
- package/lib/esm/decorators/storeMerge.js.map +1 -0
- package/lib/esm/decorators/storeSet.js +7 -0
- package/lib/esm/decorators/storeSet.js.map +1 -0
- package/lib/esm/decorators/writable.js +14 -0
- package/lib/esm/decorators/writable.js.map +1 -0
- package/lib/esm/domain/AnyToPromise.js +144 -0
- package/lib/esm/domain/AnyToPromise.js.map +1 -0
- package/lib/esm/domain/DecoratorTypes.js +12 -0
- package/lib/esm/domain/DecoratorTypes.js.map +1 -0
- package/lib/esm/domain/Env.js +16 -0
- package/lib/esm/domain/Env.js.map +1 -0
- package/lib/esm/domain/Hooks.js +85 -0
- package/lib/esm/domain/Hooks.js.map +1 -0
- package/lib/esm/domain/Metadata.js +504 -0
- package/lib/esm/domain/Metadata.js.map +1 -0
- package/lib/esm/domain/Store.js +153 -0
- package/lib/esm/domain/Store.js.map +1 -0
- package/lib/esm/domain/Type.js +4 -0
- package/lib/esm/domain/Type.js.map +1 -0
- package/lib/esm/domain/index.js +8 -0
- package/lib/esm/domain/index.js.map +1 -0
- package/lib/esm/errors/UnsupportedDecoratorType.js +17 -0
- package/lib/esm/errors/UnsupportedDecoratorType.js.map +1 -0
- package/lib/esm/index.js +6 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/interfaces/AnyDecorator.js +2 -0
- package/lib/esm/interfaces/AnyDecorator.js.map +1 -0
- package/lib/esm/interfaces/DecoratorParameters.js +2 -0
- package/lib/esm/interfaces/DecoratorParameters.js.map +1 -0
- package/lib/esm/interfaces/HashOf.js +2 -0
- package/lib/esm/interfaces/HashOf.js.map +1 -0
- package/lib/esm/interfaces/MetadataTypes.js +2 -0
- package/lib/esm/interfaces/MetadataTypes.js.map +1 -0
- package/lib/esm/interfaces/ValueOf.js +2 -0
- package/lib/esm/interfaces/ValueOf.js.map +1 -0
- package/lib/esm/interfaces/index.js +2 -0
- package/lib/esm/interfaces/index.js.map +1 -0
- package/lib/esm/utils/catchError.js +17 -0
- package/lib/esm/utils/catchError.js.map +1 -0
- package/lib/esm/utils/decorators/decorateMethodsOf.js +19 -0
- package/lib/esm/utils/decorators/decorateMethodsOf.js.map +1 -0
- package/lib/esm/utils/decorators/decoratorArgs.js +5 -0
- package/lib/esm/utils/decorators/decoratorArgs.js.map +1 -0
- package/lib/esm/utils/decorators/decoratorTypeOf.js +19 -0
- package/lib/esm/utils/decorators/decoratorTypeOf.js.map +1 -0
- package/lib/esm/utils/decorators/inheritedDescriptorOf.js +11 -0
- package/lib/esm/utils/decorators/inheritedDescriptorOf.js.map +1 -0
- package/lib/esm/utils/decorators/useDecorators.js +10 -0
- package/lib/esm/utils/decorators/useDecorators.js.map +1 -0
- package/lib/esm/utils/decorators/useMethodDecorators.js +10 -0
- package/lib/esm/utils/decorators/useMethodDecorators.js.map +1 -0
- package/lib/esm/utils/imports/importPackage.js +12 -0
- package/lib/esm/utils/imports/importPackage.js.map +1 -0
- package/lib/esm/utils/index.js +15 -0
- package/lib/esm/utils/index.js.map +1 -0
- package/lib/esm/utils/objects/ancestorOf.js +7 -0
- package/lib/esm/utils/objects/ancestorOf.js.map +1 -0
- package/lib/esm/utils/objects/ancestorsOf.js +18 -0
- package/lib/esm/utils/objects/ancestorsOf.js.map +1 -0
- package/lib/esm/utils/objects/classOf.js +18 -0
- package/lib/esm/utils/objects/classOf.js.map +1 -0
- package/lib/esm/utils/objects/cleanObject.js +20 -0
- package/lib/esm/utils/objects/cleanObject.js.map +1 -0
- package/lib/esm/utils/objects/constructorOf.js +15 -0
- package/lib/esm/utils/objects/constructorOf.js.map +1 -0
- package/lib/esm/utils/objects/createInstance.js +5 -0
- package/lib/esm/utils/objects/createInstance.js.map +1 -0
- package/lib/esm/utils/objects/deepClone.js +53 -0
- package/lib/esm/utils/objects/deepClone.js.map +1 -0
- package/lib/esm/utils/objects/deepExtends.js +75 -0
- package/lib/esm/utils/objects/deepExtends.js.map +1 -0
- package/lib/esm/utils/objects/deepMerge.js +58 -0
- package/lib/esm/utils/objects/deepMerge.js.map +1 -0
- package/lib/esm/utils/objects/descriptorOf.js +14 -0
- package/lib/esm/utils/objects/descriptorOf.js.map +1 -0
- package/lib/esm/utils/objects/getClassOrSymbol.js +6 -0
- package/lib/esm/utils/objects/getClassOrSymbol.js.map +1 -0
- package/lib/esm/utils/objects/getConstructorArgNames.js +5 -0
- package/lib/esm/utils/objects/getConstructorArgNames.js.map +1 -0
- package/lib/esm/utils/objects/getEnumerableKeys.js +16 -0
- package/lib/esm/utils/objects/getEnumerableKeys.js.map +1 -0
- package/lib/esm/utils/objects/getValue.js +45 -0
- package/lib/esm/utils/objects/getValue.js.map +1 -0
- package/lib/esm/utils/objects/index.js +44 -0
- package/lib/esm/utils/objects/index.js.map +1 -0
- package/lib/esm/utils/objects/isArray.js +18 -0
- package/lib/esm/utils/objects/isArray.js.map +1 -0
- package/lib/esm/utils/objects/isArrowFn.js +5 -0
- package/lib/esm/utils/objects/isArrowFn.js.map +1 -0
- package/lib/esm/utils/objects/isBoolean.js +12 -0
- package/lib/esm/utils/objects/isBoolean.js.map +1 -0
- package/lib/esm/utils/objects/isClass.js +22 -0
- package/lib/esm/utils/objects/isClass.js.map +1 -0
- package/lib/esm/utils/objects/isCollection.js +18 -0
- package/lib/esm/utils/objects/isCollection.js.map +1 -0
- package/lib/esm/utils/objects/isDate.js +9 -0
- package/lib/esm/utils/objects/isDate.js.map +1 -0
- package/lib/esm/utils/objects/isEmpty.js +10 -0
- package/lib/esm/utils/objects/isEmpty.js.map +1 -0
- package/lib/esm/utils/objects/isEnumerable.js +18 -0
- package/lib/esm/utils/objects/isEnumerable.js.map +1 -0
- package/lib/esm/utils/objects/isFunction.js +4 -0
- package/lib/esm/utils/objects/isFunction.js.map +1 -0
- package/lib/esm/utils/objects/isInheritedFrom.js +22 -0
- package/lib/esm/utils/objects/isInheritedFrom.js.map +1 -0
- package/lib/esm/utils/objects/isNil.js +4 -0
- package/lib/esm/utils/objects/isNil.js.map +1 -0
- package/lib/esm/utils/objects/isNumber.js +12 -0
- package/lib/esm/utils/objects/isNumber.js.map +1 -0
- package/lib/esm/utils/objects/isObject.js +4 -0
- package/lib/esm/utils/objects/isObject.js.map +1 -0
- package/lib/esm/utils/objects/isObservable.js +4 -0
- package/lib/esm/utils/objects/isObservable.js.map +1 -0
- package/lib/esm/utils/objects/isPlainObject.js +13 -0
- package/lib/esm/utils/objects/isPlainObject.js.map +1 -0
- package/lib/esm/utils/objects/isPrimitive.js +24 -0
- package/lib/esm/utils/objects/isPrimitive.js.map +1 -0
- package/lib/esm/utils/objects/isPromise.js +12 -0
- package/lib/esm/utils/objects/isPromise.js.map +1 -0
- package/lib/esm/utils/objects/isProtectedKey.js +8 -0
- package/lib/esm/utils/objects/isProtectedKey.js.map +1 -0
- package/lib/esm/utils/objects/isSerializable.js +9 -0
- package/lib/esm/utils/objects/isSerializable.js.map +1 -0
- package/lib/esm/utils/objects/isStream.js +4 -0
- package/lib/esm/utils/objects/isStream.js.map +1 -0
- package/lib/esm/utils/objects/isString.js +11 -0
- package/lib/esm/utils/objects/isString.js.map +1 -0
- package/lib/esm/utils/objects/isSymbol.js +11 -0
- package/lib/esm/utils/objects/isSymbol.js.map +1 -0
- package/lib/esm/utils/objects/methodsOf.js +21 -0
- package/lib/esm/utils/objects/methodsOf.js.map +1 -0
- package/lib/esm/utils/objects/nameOf.js +26 -0
- package/lib/esm/utils/objects/nameOf.js.map +1 -0
- package/lib/esm/utils/objects/objectKeys.js +5 -0
- package/lib/esm/utils/objects/objectKeys.js.map +1 -0
- package/lib/esm/utils/objects/primitiveOf.js +16 -0
- package/lib/esm/utils/objects/primitiveOf.js.map +1 -0
- package/lib/esm/utils/objects/prototypeOf.js +10 -0
- package/lib/esm/utils/objects/prototypeOf.js.map +1 -0
- package/lib/esm/utils/objects/setValue.js +30 -0
- package/lib/esm/utils/objects/setValue.js.map +1 -0
- package/lib/esm/utils/objects/toMap.js +28 -0
- package/lib/esm/utils/objects/toMap.js.map +1 -0
- package/lib/esm/utils/objects/toStringConstructor.js +8 -0
- package/lib/esm/utils/objects/toStringConstructor.js.map +1 -0
- package/lib/esm/utils/proxyDelegation.js +50 -0
- package/lib/esm/utils/proxyDelegation.js.map +1 -0
- package/lib/esm/utils/uniq.js +11 -0
- package/lib/esm/utils/uniq.js.map +1 -0
- package/lib/types/decorators/configurable.d.ts +2 -0
- package/lib/types/decorators/deprecated.d.ts +32 -0
- package/lib/types/decorators/enumerable.d.ts +2 -0
- package/lib/types/decorators/index.d.ts +14 -0
- package/lib/types/decorators/notConfigurable.d.ts +2 -0
- package/lib/types/decorators/notEnumerable.d.ts +2 -0
- package/lib/types/decorators/readOnly.d.ts +2 -0
- package/lib/types/decorators/storeFn.d.ts +9 -0
- package/lib/types/decorators/storeMerge.d.ts +1 -0
- package/lib/types/decorators/storeSet.d.ts +1 -0
- package/lib/types/decorators/writable.d.ts +2 -0
- package/lib/types/domain/AnyToPromise.d.ts +42 -0
- package/lib/types/domain/DecoratorTypes.d.ts +10 -0
- package/lib/types/domain/Env.d.ts +13 -0
- package/lib/types/domain/Hooks.d.ts +45 -0
- package/lib/types/domain/Metadata.d.ts +442 -0
- package/lib/types/domain/Store.d.ts +69 -0
- package/lib/types/domain/Type.d.ts +11 -0
- package/lib/types/domain/index.d.ts +7 -0
- package/lib/types/errors/UnsupportedDecoratorType.d.ts +5 -0
- package/lib/types/index.d.ts +6 -0
- package/lib/types/interfaces/AnyDecorator.d.ts +1 -0
- package/lib/types/interfaces/DecoratorParameters.d.ts +3 -0
- package/lib/types/interfaces/HashOf.d.ts +1 -0
- package/lib/types/interfaces/MetadataTypes.d.ts +5 -0
- package/lib/types/interfaces/ValueOf.d.ts +1 -0
- package/lib/types/interfaces/index.d.ts +4 -0
- package/lib/types/utils/catchError.d.ts +2 -0
- package/lib/types/utils/decorators/decorateMethodsOf.d.ts +1 -0
- package/lib/types/utils/decorators/decoratorArgs.d.ts +2 -0
- package/lib/types/utils/decorators/decoratorTypeOf.d.ts +2 -0
- package/lib/types/utils/decorators/inheritedDescriptorOf.d.ts +1 -0
- package/lib/types/utils/decorators/useDecorators.d.ts +2 -0
- package/lib/types/utils/decorators/useMethodDecorators.d.ts +3 -0
- package/lib/types/utils/imports/importPackage.d.ts +1 -0
- package/lib/types/utils/index.d.ts +12 -0
- package/lib/types/utils/objects/ancestorOf.d.ts +2 -0
- package/lib/types/utils/objects/ancestorsOf.d.ts +6 -0
- package/lib/types/utils/objects/classOf.d.ts +13 -0
- package/lib/types/utils/objects/cleanObject.d.ts +6 -0
- package/lib/types/utils/objects/constructorOf.d.ts +11 -0
- package/lib/types/utils/objects/createInstance.d.ts +1 -0
- package/lib/types/utils/objects/deepClone.d.ts +6 -0
- package/lib/types/utils/objects/deepExtends.d.ts +10 -0
- package/lib/types/utils/objects/deepMerge.d.ts +9 -0
- package/lib/types/utils/objects/descriptorOf.d.ts +8 -0
- package/lib/types/utils/objects/getClassOrSymbol.d.ts +1 -0
- package/lib/types/utils/objects/getConstructorArgNames.d.ts +1 -0
- package/lib/types/utils/objects/getEnumerableKeys.d.ts +5 -0
- package/lib/types/utils/objects/getValue.d.ts +32 -0
- package/lib/types/utils/objects/index.d.ts +43 -0
- package/lib/types/utils/objects/isArray.d.ts +13 -0
- package/lib/types/utils/objects/isArrowFn.d.ts +1 -0
- package/lib/types/utils/objects/isBoolean.d.ts +7 -0
- package/lib/types/utils/objects/isClass.d.ts +1 -0
- package/lib/types/utils/objects/isCollection.d.ts +6 -0
- package/lib/types/utils/objects/isDate.d.ts +6 -0
- package/lib/types/utils/objects/isEmpty.d.ts +6 -0
- package/lib/types/utils/objects/isEnumerable.d.ts +6 -0
- package/lib/types/utils/objects/isFunction.d.ts +1 -0
- package/lib/types/utils/objects/isInheritedFrom.d.ts +1 -0
- package/lib/types/utils/objects/isNil.d.ts +1 -0
- package/lib/types/utils/objects/isNumber.d.ts +7 -0
- package/lib/types/utils/objects/isObject.d.ts +1 -0
- package/lib/types/utils/objects/isObservable.d.ts +1 -0
- package/lib/types/utils/objects/isPlainObject.d.ts +7 -0
- package/lib/types/utils/objects/isPrimitive.d.ts +14 -0
- package/lib/types/utils/objects/isPromise.d.ts +7 -0
- package/lib/types/utils/objects/isProtectedKey.d.ts +5 -0
- package/lib/types/utils/objects/isSerializable.d.ts +1 -0
- package/lib/types/utils/objects/isStream.d.ts +1 -0
- package/lib/types/utils/objects/isString.d.ts +6 -0
- package/lib/types/utils/objects/isSymbol.d.ts +6 -0
- package/lib/types/utils/objects/methodsOf.d.ts +5 -0
- package/lib/types/utils/objects/nameOf.d.ts +14 -0
- package/lib/types/utils/objects/objectKeys.d.ts +1 -0
- package/lib/types/utils/objects/primitiveOf.d.ts +1 -0
- package/lib/types/utils/objects/prototypeOf.d.ts +6 -0
- package/lib/types/utils/objects/setValue.d.ts +1 -0
- package/lib/types/utils/objects/toMap.d.ts +3 -0
- package/lib/types/utils/objects/toStringConstructor.d.ts +1 -0
- package/lib/types/utils/proxyDelegation.d.ts +33 -0
- package/lib/types/utils/uniq.d.ts +2 -0
- package/package.json +10 -6
- package/tsconfig.compile.esm.json +23 -0
- package/lib/index.js +0 -2317
- package/lib/index.js.map +0 -1
- package/lib/index.modern.js +0 -2207
- package/lib/index.modern.js.map +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "./catchError";
|
|
2
|
+
export * from "./proxyDelegation";
|
|
3
|
+
export * from "./uniq";
|
|
4
|
+
export * from "./imports/importPackage";
|
|
5
|
+
export * from "./decorators/decorateMethodsOf";
|
|
6
|
+
export * from "./decorators/decoratorArgs";
|
|
7
|
+
export * from "./decorators/decoratorTypeOf";
|
|
8
|
+
export * from "./objects/descriptorOf";
|
|
9
|
+
export * from "./decorators/inheritedDescriptorOf";
|
|
10
|
+
export * from "./decorators/useDecorators";
|
|
11
|
+
export * from "./decorators/useMethodDecorators";
|
|
12
|
+
export * from "./objects";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the provide constructor if target is an instance.
|
|
3
|
+
* @param target
|
|
4
|
+
* @returns {*}
|
|
5
|
+
*/
|
|
6
|
+
export declare function getClass(target: any): any;
|
|
7
|
+
/**
|
|
8
|
+
* Get the provide constructor if target is an instance.
|
|
9
|
+
* @param target
|
|
10
|
+
* @returns {*}
|
|
11
|
+
* @alias getClass
|
|
12
|
+
*/
|
|
13
|
+
export declare function classOf(target: any): any;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Type } from "../../domain/Type";
|
|
2
|
+
/**
|
|
3
|
+
* Get the class constructor
|
|
4
|
+
* @param target
|
|
5
|
+
*/
|
|
6
|
+
export declare function getConstructor(target: any): Type<any>;
|
|
7
|
+
/**
|
|
8
|
+
* Get the class constructor
|
|
9
|
+
* @param target
|
|
10
|
+
*/
|
|
11
|
+
export declare function constructorOf(target: any): Type<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createInstance(obj: any): any;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare type DeepExtendsReducers = Record<string, (collection: any[], value: any) => any>;
|
|
2
|
+
/**
|
|
3
|
+
* Deep extends a model with another one.
|
|
4
|
+
* @param out
|
|
5
|
+
* @param obj
|
|
6
|
+
* @param reducers
|
|
7
|
+
* @returns {any}
|
|
8
|
+
* @deprecated Since 2021-07-16. Use deepMerge instead of
|
|
9
|
+
*/
|
|
10
|
+
export declare function deepExtends(out: any, obj: any, reducers?: DeepExtendsReducers): any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare type DeepMergeReducerCB = (collection: any[], value: any, options?: DeepMergeOptions) => any;
|
|
2
|
+
export declare type DeepMergeComparatorCB = (item: any, ref: any) => boolean;
|
|
3
|
+
export interface DeepMergeOptions {
|
|
4
|
+
reducers?: Record<string, DeepMergeReducerCB>;
|
|
5
|
+
parentKey?: string;
|
|
6
|
+
cleanUndefinedProps?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function mergeReducerBuilder(cb: DeepMergeComparatorCB): (collection: any[], value: any, options: DeepMergeOptions) => any[];
|
|
9
|
+
export declare function deepMerge<T extends any = any, C extends any = any>(source: T & any, obj: C & any, options?: DeepMergeOptions): (T & C) | undefined | null;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return the descriptor for a given class and propertyKey
|
|
3
|
+
* @param target
|
|
4
|
+
* @param {string} propertyKey
|
|
5
|
+
* @returns {PropertyDescriptor}
|
|
6
|
+
*/
|
|
7
|
+
export declare function descriptorOf(target: any, propertyKey: string | symbol): PropertyDescriptor;
|
|
8
|
+
export declare function isMethodDescriptor(target: any, propertyKey: string | symbol): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getClassOrSymbol(target: any): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getConstructorArgNames(target: any): string[];
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get value from scope
|
|
3
|
+
* @param {string} expression
|
|
4
|
+
* @param scope
|
|
5
|
+
* @returns {any}
|
|
6
|
+
*/
|
|
7
|
+
export declare function getValue<T = any>(scope: any, expression: string | undefined): T | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Get value from scope
|
|
10
|
+
* @param {string} expression
|
|
11
|
+
* @param scope
|
|
12
|
+
* @param defaultValue
|
|
13
|
+
* @param separator
|
|
14
|
+
* @returns {any}
|
|
15
|
+
*/
|
|
16
|
+
export declare function getValue<T = any>(scope: any, expression: string | undefined, defaultValue: T, separator?: string): T;
|
|
17
|
+
/**
|
|
18
|
+
* Get value from scope
|
|
19
|
+
* @param {string} expression
|
|
20
|
+
* @param scope
|
|
21
|
+
* @returns {any}
|
|
22
|
+
*/
|
|
23
|
+
export declare function getValue<T = any>(expression: string | undefined, scope: any): T | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Get value from scope
|
|
26
|
+
* @param {string} expression
|
|
27
|
+
* @param scope
|
|
28
|
+
* @param defaultValue
|
|
29
|
+
* @param separator
|
|
30
|
+
* @returns {any}
|
|
31
|
+
*/
|
|
32
|
+
export declare function getValue<T = any>(expression: string | undefined, scope: any, defaultValue: T, separator?: string): T;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export * from "./ancestorOf";
|
|
2
|
+
export * from "./ancestorsOf";
|
|
3
|
+
export * from "./classOf";
|
|
4
|
+
export * from "./cleanObject";
|
|
5
|
+
export * from "./constructorOf";
|
|
6
|
+
export * from "./deepClone";
|
|
7
|
+
export * from "./deepExtends";
|
|
8
|
+
export * from "./deepMerge";
|
|
9
|
+
export * from "./getClassOrSymbol";
|
|
10
|
+
export * from "./getConstructorArgNames";
|
|
11
|
+
export * from "./getEnumerableKeys";
|
|
12
|
+
export * from "./ancestorOf";
|
|
13
|
+
export * from "./getValue";
|
|
14
|
+
export * from "./isArray";
|
|
15
|
+
export * from "./isArrowFn";
|
|
16
|
+
export * from "./isBoolean";
|
|
17
|
+
export * from "./isClass";
|
|
18
|
+
export * from "./isCollection";
|
|
19
|
+
export * from "./isDate";
|
|
20
|
+
export * from "./isEmpty";
|
|
21
|
+
export * from "./isEnumerable";
|
|
22
|
+
export * from "./isFunction";
|
|
23
|
+
export * from "./isInheritedFrom";
|
|
24
|
+
export * from "./isNil";
|
|
25
|
+
export * from "./isNumber";
|
|
26
|
+
export * from "./isObject";
|
|
27
|
+
export * from "./isObservable";
|
|
28
|
+
export * from "./isPlainObject";
|
|
29
|
+
export * from "./isPrimitive";
|
|
30
|
+
export * from "./isPromise";
|
|
31
|
+
export * from "./isProtectedKey";
|
|
32
|
+
export * from "./isStream";
|
|
33
|
+
export * from "./isString";
|
|
34
|
+
export * from "./isSymbol";
|
|
35
|
+
export * from "./isSerializable";
|
|
36
|
+
export * from "./methodsOf";
|
|
37
|
+
export * from "./nameOf";
|
|
38
|
+
export * from "./objectKeys";
|
|
39
|
+
export * from "./primitiveOf";
|
|
40
|
+
export * from "./prototypeOf";
|
|
41
|
+
export * from "./setValue";
|
|
42
|
+
export * from "./toMap";
|
|
43
|
+
export * from "./toStringConstructor";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return true if value is an array
|
|
3
|
+
* @param target
|
|
4
|
+
* @returns {boolean}
|
|
5
|
+
*/
|
|
6
|
+
export declare function isArray<T = any>(target: unknown): target is T[];
|
|
7
|
+
/**
|
|
8
|
+
* Return true if the clazz is an array.
|
|
9
|
+
* @param target
|
|
10
|
+
* @returns {boolean}
|
|
11
|
+
* @ignore
|
|
12
|
+
*/
|
|
13
|
+
export declare function isArrayOrArrayClass<T = any>(target: unknown): target is T[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isArrowFn(target: any): target is Function;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isClass(target: any): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isFunction(target: any): target is Function;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isInheritedFrom(target: any, from: any, deep?: number): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isNil(value: any): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isObject(target: any): target is object;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isObservable<T>(obj: any): boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return true if the given obj is a primitive.
|
|
3
|
+
* @param target
|
|
4
|
+
* @returns {boolean}
|
|
5
|
+
* @ignore
|
|
6
|
+
*/
|
|
7
|
+
export declare function isPrimitiveOrPrimitiveClass(target: any): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Return true if the given obj is a primitive.
|
|
10
|
+
* @param target
|
|
11
|
+
* @returns {boolean}
|
|
12
|
+
*/
|
|
13
|
+
export declare function isPrimitive(target: any): boolean;
|
|
14
|
+
export declare function isPrimitiveClass(target: any): boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tests to see if the object is an ES2015 (ES6) Promise
|
|
3
|
+
* @see {@link https://www.ecma-international.org/ecma-262/6.0/#sec-promise-objects}
|
|
4
|
+
* @param target
|
|
5
|
+
* @returns {boolean}
|
|
6
|
+
*/
|
|
7
|
+
export declare function isPromise<T = any>(target: any): target is Promise<T>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isSerializable(data: any): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isStream(obj: any): boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the provide name.
|
|
3
|
+
* @param targetClass
|
|
4
|
+
*/
|
|
5
|
+
export declare function nameOfClass(targetClass: any): string;
|
|
6
|
+
/**
|
|
7
|
+
* Get symbol name.
|
|
8
|
+
* @param sym
|
|
9
|
+
*/
|
|
10
|
+
export declare const nameOfSymbol: (sym: symbol) => string;
|
|
11
|
+
/**
|
|
12
|
+
* Get object name
|
|
13
|
+
*/
|
|
14
|
+
export declare function nameOf(obj: any): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function objectKeys(obj: any): string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function primitiveOf(target: any): "string" | "number" | "boolean" | "any";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function setValue(scope: any, expression: string, value: any, separator?: string): void;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare type ToMapIdentityCB<V> = (item: V, index: string | number) => string | string[];
|
|
2
|
+
export declare type ToMapIdentity<V> = string | ToMapIdentityCB<V>;
|
|
3
|
+
export declare function toMap<K extends keyof any = any, V = any>(input: Record<K, V> | V[], keyOrFn?: ToMapIdentity<V>): Map<K, V>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function toStringConstructor(target: any): string;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @ignore
|
|
3
|
+
*/
|
|
4
|
+
export declare type ProxyDelegationGetter<T = any> = (target: T, property: PropertyKey) => any | undefined;
|
|
5
|
+
/**
|
|
6
|
+
* @ignore
|
|
7
|
+
*/
|
|
8
|
+
export declare type ProxyDelegationRemove<T = any> = (target: T, property: PropertyKey) => any;
|
|
9
|
+
/**
|
|
10
|
+
* @ignore
|
|
11
|
+
*/
|
|
12
|
+
export declare type ProxyDelegationSetter<T = any> = (target: T, property: PropertyKey, value: any, receiver: any) => any;
|
|
13
|
+
/**
|
|
14
|
+
* @ignore
|
|
15
|
+
*/
|
|
16
|
+
export declare type ProxyDelegationOwnKeys<T = any> = (target: T) => (string | symbol)[];
|
|
17
|
+
/**
|
|
18
|
+
* @ignore
|
|
19
|
+
*/
|
|
20
|
+
export interface ProxyDelegation<T extends object> {
|
|
21
|
+
handlers?: ProxyHandler<T>;
|
|
22
|
+
getter?: ProxyDelegationGetter<T>;
|
|
23
|
+
setter?: ProxyDelegationSetter<T>;
|
|
24
|
+
remove?: ProxyDelegationRemove<T>;
|
|
25
|
+
ownKeys?: ProxyDelegationOwnKeys<T>;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Create a complete and iterable trap.
|
|
29
|
+
* @param self
|
|
30
|
+
* @param options
|
|
31
|
+
* @ignore
|
|
32
|
+
*/
|
|
33
|
+
export declare function proxyDelegation<T extends object = any>(self: any, options?: ProxyDelegation<T>): T;
|
package/package.json
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsed/core",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.89.0",
|
|
4
4
|
"description": "Core module for Ts.ED Framework",
|
|
5
5
|
"private": false,
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
|
-
"main": "./lib/index.js",
|
|
8
|
-
"typings": "./lib/index.d.ts",
|
|
7
|
+
"main": "./lib/cjs/index.js",
|
|
8
|
+
"typings": "./lib/types/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
|
-
"
|
|
11
|
-
"
|
|
10
|
+
"types": "./lib/types/index.d.ts",
|
|
11
|
+
"import": "./lib/esm/index.js",
|
|
12
|
+
"require": "./lib/cjs/index.js",
|
|
13
|
+
"default": "./lib/esm/index.js"
|
|
12
14
|
},
|
|
13
15
|
"scripts": {
|
|
14
|
-
"build": "
|
|
16
|
+
"build": "yarn run build:esm && yarn run build:cjs",
|
|
17
|
+
"build:cjs": "tsc --build tsconfig.compile.json",
|
|
18
|
+
"build:esm": "tsc --build tsconfig.compile.esm.json"
|
|
15
19
|
},
|
|
16
20
|
"dependencies": {
|
|
17
21
|
"reflect-metadata": "^0.1.13",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.compile.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"baseUrl": ".",
|
|
5
|
+
"module": "ES2020",
|
|
6
|
+
"rootDir": "src",
|
|
7
|
+
"outDir": "./lib/esm",
|
|
8
|
+
"declaration": true,
|
|
9
|
+
"declarationDir": "./lib/types"
|
|
10
|
+
},
|
|
11
|
+
"exclude": [
|
|
12
|
+
"node_modules",
|
|
13
|
+
"test",
|
|
14
|
+
"lib",
|
|
15
|
+
"benchmark",
|
|
16
|
+
"coverage",
|
|
17
|
+
"spec",
|
|
18
|
+
"**/*.benchmark.ts",
|
|
19
|
+
"**/*.spec.ts",
|
|
20
|
+
"keys",
|
|
21
|
+
"jest.config.js"
|
|
22
|
+
]
|
|
23
|
+
}
|