@tsed/core 6.95.6 → 6.95.10
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/package.json +1 -1
- package/lib/cjs/decorators/configurable.d.ts +0 -2
- package/lib/cjs/decorators/deprecated.d.ts +0 -32
- package/lib/cjs/decorators/enumerable.d.ts +0 -2
- package/lib/cjs/decorators/index.d.ts +0 -14
- package/lib/cjs/decorators/notConfigurable.d.ts +0 -2
- package/lib/cjs/decorators/notEnumerable.d.ts +0 -2
- package/lib/cjs/decorators/readOnly.d.ts +0 -2
- package/lib/cjs/decorators/storeFn.d.ts +0 -9
- package/lib/cjs/decorators/storeMerge.d.ts +0 -1
- package/lib/cjs/decorators/storeSet.d.ts +0 -1
- package/lib/cjs/decorators/writable.d.ts +0 -2
- package/lib/cjs/domain/AnyToPromise.d.ts +0 -42
- package/lib/cjs/domain/DecoratorTypes.d.ts +0 -10
- package/lib/cjs/domain/Env.d.ts +0 -13
- package/lib/cjs/domain/Hooks.d.ts +0 -45
- package/lib/cjs/domain/Metadata.d.ts +0 -442
- package/lib/cjs/domain/Store.d.ts +0 -69
- package/lib/cjs/domain/Type.d.ts +0 -11
- package/lib/cjs/domain/index.d.ts +0 -7
- package/lib/cjs/errors/UnsupportedDecoratorType.d.ts +0 -5
- package/lib/cjs/index.d.ts +0 -6
- package/lib/cjs/interfaces/AnyDecorator.d.ts +0 -1
- package/lib/cjs/interfaces/DecoratorParameters.d.ts +0 -3
- package/lib/cjs/interfaces/HashOf.d.ts +0 -1
- package/lib/cjs/interfaces/MetadataTypes.d.ts +0 -5
- package/lib/cjs/interfaces/ValueOf.d.ts +0 -1
- package/lib/cjs/interfaces/index.d.ts +0 -4
- package/lib/cjs/utils/catchError.d.ts +0 -2
- package/lib/cjs/utils/decorators/decorateMethodsOf.d.ts +0 -1
- package/lib/cjs/utils/decorators/decoratorArgs.d.ts +0 -2
- package/lib/cjs/utils/decorators/decoratorTypeOf.d.ts +0 -2
- package/lib/cjs/utils/decorators/inheritedDescriptorOf.d.ts +0 -1
- package/lib/cjs/utils/decorators/useDecorators.d.ts +0 -2
- package/lib/cjs/utils/decorators/useMethodDecorators.d.ts +0 -3
- package/lib/cjs/utils/http/getHostInfoFromPort.d.ts +0 -6
- package/lib/cjs/utils/imports/importPackage.d.ts +0 -1
- package/lib/cjs/utils/index.d.ts +0 -13
- package/lib/cjs/utils/objects/ancestorOf.d.ts +0 -2
- package/lib/cjs/utils/objects/ancestorsOf.d.ts +0 -6
- package/lib/cjs/utils/objects/classOf.d.ts +0 -13
- package/lib/cjs/utils/objects/cleanObject.d.ts +0 -6
- package/lib/cjs/utils/objects/constructorOf.d.ts +0 -11
- package/lib/cjs/utils/objects/createInstance.d.ts +0 -1
- package/lib/cjs/utils/objects/deepClone.d.ts +0 -6
- package/lib/cjs/utils/objects/deepExtends.d.ts +0 -10
- package/lib/cjs/utils/objects/deepMerge.d.ts +0 -9
- package/lib/cjs/utils/objects/descriptorOf.d.ts +0 -8
- package/lib/cjs/utils/objects/getClassOrSymbol.d.ts +0 -1
- package/lib/cjs/utils/objects/getConstructorArgNames.d.ts +0 -1
- package/lib/cjs/utils/objects/getEnumerableKeys.d.ts +0 -5
- package/lib/cjs/utils/objects/getValue.d.ts +0 -32
- package/lib/cjs/utils/objects/index.d.ts +0 -43
- package/lib/cjs/utils/objects/isArray.d.ts +0 -13
- package/lib/cjs/utils/objects/isArrowFn.d.ts +0 -1
- package/lib/cjs/utils/objects/isBoolean.d.ts +0 -7
- package/lib/cjs/utils/objects/isClass.d.ts +0 -1
- package/lib/cjs/utils/objects/isCollection.d.ts +0 -6
- package/lib/cjs/utils/objects/isDate.d.ts +0 -6
- package/lib/cjs/utils/objects/isEmpty.d.ts +0 -6
- package/lib/cjs/utils/objects/isEnumerable.d.ts +0 -6
- package/lib/cjs/utils/objects/isFunction.d.ts +0 -1
- package/lib/cjs/utils/objects/isInheritedFrom.d.ts +0 -1
- package/lib/cjs/utils/objects/isNil.d.ts +0 -1
- package/lib/cjs/utils/objects/isNumber.d.ts +0 -7
- package/lib/cjs/utils/objects/isObject.d.ts +0 -1
- package/lib/cjs/utils/objects/isObservable.d.ts +0 -1
- package/lib/cjs/utils/objects/isPlainObject.d.ts +0 -7
- package/lib/cjs/utils/objects/isPrimitive.d.ts +0 -14
- package/lib/cjs/utils/objects/isPromise.d.ts +0 -7
- package/lib/cjs/utils/objects/isProtectedKey.d.ts +0 -5
- package/lib/cjs/utils/objects/isSerializable.d.ts +0 -1
- package/lib/cjs/utils/objects/isStream.d.ts +0 -1
- package/lib/cjs/utils/objects/isString.d.ts +0 -6
- package/lib/cjs/utils/objects/isSymbol.d.ts +0 -6
- package/lib/cjs/utils/objects/methodsOf.d.ts +0 -5
- package/lib/cjs/utils/objects/nameOf.d.ts +0 -14
- package/lib/cjs/utils/objects/objectKeys.d.ts +0 -1
- package/lib/cjs/utils/objects/primitiveOf.d.ts +0 -1
- package/lib/cjs/utils/objects/prototypeOf.d.ts +0 -6
- package/lib/cjs/utils/objects/setValue.d.ts +0 -1
- package/lib/cjs/utils/objects/toMap.d.ts +0 -3
- package/lib/cjs/utils/objects/toStringConstructor.d.ts +0 -1
- package/lib/cjs/utils/proxyDelegation.d.ts +0 -33
- package/lib/cjs/utils/uniq.d.ts +0 -2
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import type { Type } from "./Type";
|
|
2
|
-
/**
|
|
3
|
-
* @ignore
|
|
4
|
-
*/
|
|
5
|
-
export declare const CLASS_STORE = "tsed:class:store";
|
|
6
|
-
/**
|
|
7
|
-
* @ignore
|
|
8
|
-
*/
|
|
9
|
-
export declare const METHOD_STORE = "tsed:method:store";
|
|
10
|
-
/**
|
|
11
|
-
* @ignore
|
|
12
|
-
*/
|
|
13
|
-
export declare const PROPERTY_STORE = "tsed:property:store";
|
|
14
|
-
/**
|
|
15
|
-
* @ignore
|
|
16
|
-
*/
|
|
17
|
-
export declare const PARAM_STORE = "tsed:param:store";
|
|
18
|
-
export declare class Store {
|
|
19
|
-
private _entries;
|
|
20
|
-
/**
|
|
21
|
-
* Create or get a Store from args {target + methodName + descriptor}
|
|
22
|
-
* @param args
|
|
23
|
-
* @returns {Store}
|
|
24
|
-
*/
|
|
25
|
-
static from(...args: any[]): Store;
|
|
26
|
-
/**
|
|
27
|
-
* Create store on the method.
|
|
28
|
-
* @param target
|
|
29
|
-
* @param {string} propertyKey
|
|
30
|
-
* @returns {Store}
|
|
31
|
-
*/
|
|
32
|
-
static fromMethod(target: any, propertyKey: string | symbol): Store;
|
|
33
|
-
static mergeStoreFrom(target: Type<any>, source: Type<any>, ...args: any[]): Store;
|
|
34
|
-
static mergeStoreMethodFrom(target: Type<any>, source: Type<any>, propertyKey: string | symbol): Store;
|
|
35
|
-
/**
|
|
36
|
-
* The get() method returns a specified element from a Map object.
|
|
37
|
-
* @param key Required. The key of the element to return from the Map object.
|
|
38
|
-
* @param defaultValue
|
|
39
|
-
* @returns {T} Returns the element associated with the specified key or undefined if the key can't be found in the Map object.
|
|
40
|
-
*/
|
|
41
|
-
get<T = any>(key: any, defaultValue?: any): T;
|
|
42
|
-
/**
|
|
43
|
-
* The has() method returns a boolean indicating whether an element with the specified key exists or not.
|
|
44
|
-
* @param key
|
|
45
|
-
* @returns {boolean}
|
|
46
|
-
*/
|
|
47
|
-
has(key: any): boolean;
|
|
48
|
-
/**
|
|
49
|
-
* The set() method adds or updates an element with a specified key and value to a Map object.
|
|
50
|
-
* @param key Required. The key of the element to add to the Map object.
|
|
51
|
-
* @param metadata Required. The value of the element to add to the Map object.
|
|
52
|
-
*/
|
|
53
|
-
set(key: any, metadata: any): Store;
|
|
54
|
-
/**
|
|
55
|
-
* The delete() method removes the specified element from a Map object.
|
|
56
|
-
* @param key Required. The key of the element to remove from the Map object.
|
|
57
|
-
* @returns {boolean} Returns true if an element in the Map object existed and has been removed, or false if the element does not exist.
|
|
58
|
-
*/
|
|
59
|
-
delete(key: string): boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Merge given value with existing value.
|
|
62
|
-
* @param key
|
|
63
|
-
* @param value
|
|
64
|
-
* @param inverse Change the merge order. Get the existing value and apply over given value
|
|
65
|
-
* @returns {Store}
|
|
66
|
-
*/
|
|
67
|
-
merge(key: any, value: any, inverse?: boolean): Store;
|
|
68
|
-
toJson(): {};
|
|
69
|
-
}
|
package/lib/cjs/domain/Type.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* An example of a `Type` is `MyCustomComponent` filters, which in JavaScript is be represented by
|
|
3
|
-
* the `MyCustomComponent` constructor function.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
export interface Type<T = any> extends Function {
|
|
9
|
-
new (...args: any[]): T;
|
|
10
|
-
}
|
|
11
|
-
export declare const Type: FunctionConstructor;
|
package/lib/cjs/index.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import "reflect-metadata";
|
|
2
|
-
export type { DecoratorParameters, DecoratorMethodParameters, StaticMethodDecorator, MetadataTypes, ValueOf, HashOf } from "./interfaces";
|
|
3
|
-
export * from "./utils";
|
|
4
|
-
export * from "./domain";
|
|
5
|
-
export * from "./errors/UnsupportedDecoratorType";
|
|
6
|
-
export * from "./decorators";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare type AnyDecorator = any | ClassDecorator | MethodDecorator | PropertyDescriptor | ParameterDecorator;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare type DecoratorParameters = [any, string | symbol, number | PropertyDescriptor];
|
|
2
|
-
export declare type DecoratorMethodParameters = [any, string | symbol, PropertyDescriptor];
|
|
3
|
-
export declare type StaticMethodDecorator = <TFunction extends Function, T>(target: TFunction, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare type HashOf<T> = Record<string, T>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare type ValueOf<T> = T[keyof T];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function decorateMethodsOf(klass: any, decorator: any): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function inheritedDescriptorOf(target: any, propertyKey: string): PropertyDescriptor | undefined;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { AnyDecorator } from "../../interfaces/AnyDecorator";
|
|
2
|
-
export declare function useMethodDecorator(decorator: AnyDecorator): (target: any, propertyKey: string | symbol) => any;
|
|
3
|
-
export declare function useMethodDecorators(...decorators: AnyDecorator[]): (target: any, propertyKey: string | symbol) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function importPackage(packageName: string, loaderFn?: Function, optional?: boolean): Promise<any>;
|
package/lib/cjs/utils/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
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";
|
|
13
|
-
export * from "./http/getHostInfoFromPort";
|
|
@@ -1,13 +0,0 @@
|
|
|
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;
|
|
@@ -1,11 +0,0 @@
|
|
|
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>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function createInstance(obj: any): any;
|
|
@@ -1,10 +0,0 @@
|
|
|
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;
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getClassOrSymbol(target: any): any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getConstructorArgNames(target: any): string[];
|
|
@@ -1,32 +0,0 @@
|
|
|
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;
|
|
@@ -1,43 +0,0 @@
|
|
|
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";
|
|
@@ -1,13 +0,0 @@
|
|
|
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[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isArrowFn(target: any): target is Function;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isClass(target: any): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isFunction(target: any): target is Function;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isInheritedFrom(target: any, from: any, deep?: number): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isNil(value: any): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isObject(target: any): target is object;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isObservable<T>(obj: any): boolean;
|
|
@@ -1,14 +0,0 @@
|
|
|
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;
|
|
@@ -1,7 +0,0 @@
|
|
|
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>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isSerializable(data: any): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isStream(obj: any): boolean;
|
|
@@ -1,14 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function objectKeys(obj: any): string[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function primitiveOf(target: any): "string" | "number" | "boolean" | "any";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function setValue(scope: any, expression: string, value: any, separator?: string): void;
|
|
@@ -1,3 +0,0 @@
|
|
|
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>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function toStringConstructor(target: any): string;
|
|
@@ -1,33 +0,0 @@
|
|
|
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/lib/cjs/utils/uniq.d.ts
DELETED