@tsed/core 6.80.1 → 6.81.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/domain/index.d.ts +0 -1
- package/lib/index.js +39 -116
- package/lib/index.js.map +1 -1
- package/lib/index.modern.js +18 -116
- package/lib/index.modern.js.map +1 -1
- package/lib/utils/imports/importPackage.d.ts +1 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/objects/descriptorOf.d.ts +1 -0
- package/package.json +1 -1
- package/lib/domain/Entity.d.ts +0 -97
package/package.json
CHANGED
package/lib/domain/Entity.d.ts
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { Type } from "./Type";
|
|
2
|
-
import { DecoratorTypes } from "./DecoratorTypes";
|
|
3
|
-
export interface EntityOptions {
|
|
4
|
-
target: Type<any>;
|
|
5
|
-
propertyKey?: string | symbol;
|
|
6
|
-
index?: number;
|
|
7
|
-
descriptor?: any;
|
|
8
|
-
type?: Type<any>;
|
|
9
|
-
collectionType?: Type<any>;
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
}
|
|
12
|
-
export declare abstract class Entity {
|
|
13
|
-
/**
|
|
14
|
-
* Original property key decorated by the decorator
|
|
15
|
-
*/
|
|
16
|
-
readonly propertyKey: string | symbol;
|
|
17
|
-
/**
|
|
18
|
-
* Alias of the property
|
|
19
|
-
*/
|
|
20
|
-
readonly propertyName: string;
|
|
21
|
-
/**
|
|
22
|
-
* Parameter index
|
|
23
|
-
*/
|
|
24
|
-
readonly index: number;
|
|
25
|
-
/**
|
|
26
|
-
* Method's descriptor
|
|
27
|
-
*/
|
|
28
|
-
readonly descriptor: number;
|
|
29
|
-
/**
|
|
30
|
-
* Decorator type used to declare the JsonSchemaStore.
|
|
31
|
-
*/
|
|
32
|
-
readonly decoratorType: DecoratorTypes;
|
|
33
|
-
/**
|
|
34
|
-
* Type of the collection (Array, Map, Set, etc...)
|
|
35
|
-
*/
|
|
36
|
-
collectionType: Type<any>;
|
|
37
|
-
token: Type<any>;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
*/
|
|
41
|
-
protected _type: Type<any>;
|
|
42
|
-
protected _target: Type<any>;
|
|
43
|
-
protected constructor({ target, propertyKey, descriptor, index }: EntityOptions);
|
|
44
|
-
/**
|
|
45
|
-
* Reference to the class
|
|
46
|
-
*/
|
|
47
|
-
get target(): Type<any>;
|
|
48
|
-
/**
|
|
49
|
-
* Return the class name of the entity.
|
|
50
|
-
* @returns {string}
|
|
51
|
-
*/
|
|
52
|
-
get targetName(): string;
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @returns {Type<any>}
|
|
56
|
-
*/
|
|
57
|
-
get type(): Type<any> | any;
|
|
58
|
-
/**
|
|
59
|
-
* Get original type without transformation
|
|
60
|
-
* @param value
|
|
61
|
-
*/
|
|
62
|
-
set type(value: Type<any> | any);
|
|
63
|
-
/**
|
|
64
|
-
* Return the itemSchema target type. if the type is a function used for recursive model, the function will be called to
|
|
65
|
-
* get the right type.
|
|
66
|
-
*/
|
|
67
|
-
get computedType(): Type<any>;
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @returns {boolean}
|
|
71
|
-
*/
|
|
72
|
-
get isCollection(): boolean;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @returns {boolean}
|
|
76
|
-
*/
|
|
77
|
-
get isArray(): boolean;
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @returns {boolean}
|
|
81
|
-
*/
|
|
82
|
-
get isPrimitive(): boolean;
|
|
83
|
-
/**
|
|
84
|
-
*
|
|
85
|
-
* @returns {boolean}
|
|
86
|
-
*/
|
|
87
|
-
get isDate(): boolean;
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @returns {boolean}
|
|
91
|
-
*/
|
|
92
|
-
get isObject(): boolean;
|
|
93
|
-
/**
|
|
94
|
-
*
|
|
95
|
-
*/
|
|
96
|
-
get isClass(): boolean;
|
|
97
|
-
}
|