type-tls 3.7.0 → 3.8.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/dist/class.d.ts +13 -0
- package/package.json +1 -1
package/dist/class.d.ts
CHANGED
|
@@ -5,7 +5,14 @@
|
|
|
5
5
|
* @typeParam Instance - 构建函数的返回的实例类型
|
|
6
6
|
*/
|
|
7
7
|
export interface ClassType<Arg extends any[] = any, Instance = any> {
|
|
8
|
+
/**
|
|
9
|
+
* 类的构造函数
|
|
10
|
+
*/
|
|
8
11
|
new (...args: Arg): Instance;
|
|
12
|
+
/**
|
|
13
|
+
* 类的原型对象
|
|
14
|
+
*/
|
|
15
|
+
prototype: Instance;
|
|
9
16
|
}
|
|
10
17
|
/**
|
|
11
18
|
* 构造函数的类型
|
|
@@ -14,6 +21,12 @@ export interface ClassType<Arg extends any[] = any, Instance = any> {
|
|
|
14
21
|
* @typeParam Instance - 构建函数的返回的实例类型
|
|
15
22
|
*/
|
|
16
23
|
export type Constructor<Arg extends any[] = any, Instance = any> = new (...args: Arg) => Instance;
|
|
24
|
+
/**
|
|
25
|
+
* 构造函数的类型接口
|
|
26
|
+
*/
|
|
27
|
+
export interface IConstructor<Arg extends any[] = any, Instance = any> {
|
|
28
|
+
new (...args: Arg): Instance;
|
|
29
|
+
}
|
|
17
30
|
/**
|
|
18
31
|
* 提取当前类实例的构造函数类型
|
|
19
32
|
*/
|