plugin-tls 3.3.3 → 3.5.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/options/options-plugin-host/tier-mode-options/TierModeOptionsPluginHostEventEmitter.d.ts +2 -2
- package/dist/options/options-plugin-host/tier-mode-options/TierModeOptionsPluginHostEventEmitter.d.ts.map +1 -1
- package/dist/options/options-plugin-host/tier-options/TierOptionsPluginHostEventEmitter.d.ts +2 -2
- package/dist/options/options-plugin-host/tier-options/TierOptionsPluginHostEventEmitter.d.ts.map +1 -1
- package/dist/plugin-host/PluginHostEventEmitter.d.ts +3 -3
- package/dist/plugin-host/PluginHostEventEmitter.d.ts.map +1 -1
- package/package.json +3 -3
- package/doc/api/index.md +0 -32
- package/doc/api/plugin-tls.adddefaultoptions.md +0 -75
- package/doc/api/plugin-tls.addinstoptions.md +0 -85
- package/doc/api/plugin-tls.allfunctionapply.md +0 -80
- package/doc/api/plugin-tls.becomepluginhost.md +0 -15
- package/doc/api/plugin-tls.becomepluginhost_extends.md +0 -72
- package/doc/api/plugin-tls.becomepluginhost_proxy.md +0 -57
- package/doc/api/plugin-tls.becometiermodeoptionshost.md +0 -15
- package/doc/api/plugin-tls.becometieroptionshost.md +0 -15
- package/doc/api/plugin-tls.classextender.md +0 -15
- package/doc/api/plugin-tls.classextenderprivatemember._constructors.md +0 -13
- package/doc/api/plugin-tls.classextenderprivatemember._destroys.md +0 -13
- package/doc/api/plugin-tls.classextenderprivatemember.md +0 -81
- package/doc/api/plugin-tls.classextenderprivatememberwithinit._inits.md +0 -13
- package/doc/api/plugin-tls.classextenderprivatememberwithinit.md +0 -61
- package/doc/api/plugin-tls.classextenderwithinit.md +0 -15
- package/doc/api/plugin-tls.classtype._new_.md +0 -50
- package/doc/api/plugin-tls.classtype.md +0 -38
- package/doc/api/plugin-tls.commonmodename.md +0 -18
- package/doc/api/plugin-tls.createcallerofprivatememberofextend.md +0 -58
- package/doc/api/plugin-tls.createdefinemixin.md +0 -23
- package/doc/api/plugin-tls.createextendtarget.md +0 -60
- package/doc/api/plugin-tls.createextendtargetwithinit.md +0 -60
- package/doc/api/plugin-tls.createmixintarget.md +0 -58
- package/doc/api/plugin-tls.createpluginhost.md +0 -140
- package/doc/api/plugin-tls.createpropertysetter.md +0 -71
- package/doc/api/plugin-tls.createtargetextend.md +0 -60
- package/doc/api/plugin-tls.createtargetextendwithinit.md +0 -60
- package/doc/api/plugin-tls.createtargetmixin.md +0 -60
- package/doc/api/plugin-tls.createtiermodeoptionspluginhost.md +0 -138
- package/doc/api/plugin-tls.createtieroptionspluginhost.md +0 -135
- package/doc/api/plugin-tls.defineextend.md +0 -80
- package/doc/api/plugin-tls.defineextendwithinit.md +0 -80
- package/doc/api/plugin-tls.definemixin.md +0 -76
- package/doc/api/plugin-tls.extendtarget.md +0 -76
- package/doc/api/plugin-tls.extendtargetwithinit.md +0 -76
- package/doc/api/plugin-tls.formatuseparameters.md +0 -13
- package/doc/api/plugin-tls.formatusepluginparameters.md +0 -15
- package/doc/api/plugin-tls.getnormalizepluginoptions.md +0 -15
- package/doc/api/plugin-tls.getpluginoptions.md +0 -15
- package/doc/api/plugin-tls.getpropertyvalue.md +0 -67
- package/doc/api/plugin-tls.getpropertyvaluebypath.md +0 -67
- package/doc/api/plugin-tls.gettargetproperties.md +0 -67
- package/doc/api/plugin-tls.hostinst.md +0 -13
- package/doc/api/plugin-tls.idefaultoptionshost.defaultoptions.md +0 -11
- package/doc/api/plugin-tls.idefaultoptionshost.md +0 -58
- package/doc/api/plugin-tls.iidefaultoptionshostconstructor.md +0 -13
- package/doc/api/plugin-tls.iplugin.created.md +0 -70
- package/doc/api/plugin-tls.iplugin.destroyed.md +0 -70
- package/doc/api/plugin-tls.iplugin.md +0 -62
- package/doc/api/plugin-tls.iplugin.used.md +0 -70
- package/doc/api/plugin-tls.ipluginhost.md +0 -40
- package/doc/api/plugin-tls.ipluginhost.use.md +0 -67
- package/doc/api/plugin-tls.ipluginhostconstructor.md +0 -40
- package/doc/api/plugin-tls.ipluginhostconstructor.use.md +0 -70
- package/doc/api/plugin-tls.ipluginwithinit.inited.md +0 -70
- package/doc/api/plugin-tls.ipluginwithinit.md +0 -41
- package/doc/api/plugin-tls.itiermodeoptionshost.md +0 -75
- package/doc/api/plugin-tls.itiermodeoptionshost.mode.md +0 -11
- package/doc/api/plugin-tls.itiermodeoptionshost.modeoptions.md +0 -11
- package/doc/api/plugin-tls.itiermodeoptionshostconstructor.md +0 -13
- package/doc/api/plugin-tls.itiermodeoptionspluginhost.md +0 -15
- package/doc/api/plugin-tls.itiermodeoptionspluginhostconstructor.md +0 -15
- package/doc/api/plugin-tls.itieroptionshost.defaultoptions.md +0 -11
- package/doc/api/plugin-tls.itieroptionshost.md +0 -58
- package/doc/api/plugin-tls.itieroptionshostconstructor.md +0 -13
- package/doc/api/plugin-tls.itieroptionspluginhost.md +0 -15
- package/doc/api/plugin-tls.itieroptionspluginhostconstructor.md +0 -15
- package/doc/api/plugin-tls.md +0 -989
- package/doc/api/plugin-tls.mergeproperties.md +0 -66
- package/doc/api/plugin-tls.mixin_4.md +0 -78
- package/doc/api/plugin-tls.mixintarget.md +0 -76
- package/doc/api/plugin-tls.modeoptions._constructor_.md +0 -48
- package/doc/api/plugin-tls.modeoptions._constructor__1.md +0 -64
- package/doc/api/plugin-tls.modeoptions._mode.md +0 -11
- package/doc/api/plugin-tls.modeoptions._modenames.md +0 -11
- package/doc/api/plugin-tls.modeoptions._plainfulloption.md +0 -11
- package/doc/api/plugin-tls.modeoptions.getfullmodeoption.md +0 -57
- package/doc/api/plugin-tls.modeoptions.getmodenames.md +0 -18
- package/doc/api/plugin-tls.modeoptions.getmodeoption.md +0 -57
- package/doc/api/plugin-tls.modeoptions.hasmode.md +0 -53
- package/doc/api/plugin-tls.modeoptions.md +0 -381
- package/doc/api/plugin-tls.modeoptions.mode.md +0 -15
- package/doc/api/plugin-tls.modeoptions.modenames.md +0 -13
- package/doc/api/plugin-tls.modeoptions.modes.md +0 -13
- package/doc/api/plugin-tls.modeoptions.option.md +0 -13
- package/doc/api/plugin-tls.modeoptions.optionmanager.md +0 -13
- package/doc/api/plugin-tls.modeoptions.plainfulloption.md +0 -11
- package/doc/api/plugin-tls.modeoptions.setmodeoption.md +0 -98
- package/doc/api/plugin-tls.modeoptions.updatefulloption.md +0 -17
- package/doc/api/plugin-tls.normalizepluginoptions.md +0 -18
- package/doc/api/plugin-tls.parsepropertypath.md +0 -53
- package/doc/api/plugin-tls.plugincreatedreturntype.md +0 -15
- package/doc/api/plugin-tls.pluginhost._pluginmanager.md +0 -11
- package/doc/api/plugin-tls.pluginhost.destroythis.md +0 -18
- package/doc/api/plugin-tls.pluginhost.md +0 -177
- package/doc/api/plugin-tls.pluginhost.pluginmanager.md +0 -13
- package/doc/api/plugin-tls.pluginhost.use.md +0 -70
- package/doc/api/plugin-tls.pluginmanager._constructor_.md +0 -50
- package/doc/api/plugin-tls.pluginmanager.created.md +0 -58
- package/doc/api/plugin-tls.pluginmanager.destroyed.md +0 -58
- package/doc/api/plugin-tls.pluginmanager.host.md +0 -13
- package/doc/api/plugin-tls.pluginmanager.instuse.md +0 -86
- package/doc/api/plugin-tls.pluginmanager.md +0 -214
- package/doc/api/plugin-tls.pluginmanager.pluginoptsmap.md +0 -13
- package/doc/api/plugin-tls.pluginmanager.plugins.md +0 -13
- package/doc/api/plugin-tls.pluginmanager.use.md +0 -70
- package/doc/api/plugin-tls.pluginmanagerwithinit.inited.md +0 -58
- package/doc/api/plugin-tls.pluginmanagerwithinit.md +0 -53
- package/doc/api/plugin-tls.pluginusereturntype.md +0 -15
- package/doc/api/plugin-tls.privatememberofextend._constructor.md +0 -60
- package/doc/api/plugin-tls.privatememberofextend._destroy.md +0 -25
- package/doc/api/plugin-tls.privatememberofextend.md +0 -51
- package/doc/api/plugin-tls.privatememberofextendwithinit._init.md +0 -56
- package/doc/api/plugin-tls.privatememberofextendwithinit.md +0 -41
- package/doc/api/plugin-tls.replaceconstructorparameters.md +0 -13
- package/doc/api/plugin-tls.replaceconstructorreturn.md +0 -13
- package/doc/api/plugin-tls.setpropertyvalue.md +0 -81
- package/doc/api/plugin-tls.setpropertyvaluebypath.md +0 -81
- package/doc/api/plugin-tls.targetextend.md +0 -76
- package/doc/api/plugin-tls.targetextendwithinit.md +0 -76
- package/doc/api/plugin-tls.targetmixin.md +0 -76
- package/doc/api/plugin-tls.tiermodeoptions._constructor_.md +0 -48
- package/doc/api/plugin-tls.tiermodeoptions._constructor__1.md +0 -80
- package/doc/api/plugin-tls.tiermodeoptions._extends.md +0 -11
- package/doc/api/plugin-tls.tiermodeoptions.extends.md +0 -15
- package/doc/api/plugin-tls.tiermodeoptions.getfullmodeoption.md +0 -57
- package/doc/api/plugin-tls.tiermodeoptions.getmember.md +0 -53
- package/doc/api/plugin-tls.tiermodeoptions.getmodenames.md +0 -18
- package/doc/api/plugin-tls.tiermodeoptions.getmodeoptionmanager.md +0 -53
- package/doc/api/plugin-tls.tiermodeoptions.getvalue.md +0 -53
- package/doc/api/plugin-tls.tiermodeoptions.hasmodeontier.md +0 -53
- package/doc/api/plugin-tls.tiermodeoptions.md +0 -255
- package/doc/api/plugin-tls.tiermodeoptions.optionmanager.md +0 -13
- package/doc/api/plugin-tls.tiermodeoptionsdecorator.md +0 -71
- package/doc/api/plugin-tls.tiermodeoptionspluginhost._constructor_.md +0 -48
- package/doc/api/plugin-tls.tiermodeoptionspluginhost._modeoptions.md +0 -11
- package/doc/api/plugin-tls.tiermodeoptionspluginhost.md +0 -179
- package/doc/api/plugin-tls.tiermodeoptionspluginhost.mode.md +0 -13
- package/doc/api/plugin-tls.tiermodeoptionspluginhost.modeoptions.md +0 -13
- package/doc/api/plugin-tls.tiermodeoptionspluginhost.options.md +0 -11
- package/doc/api/plugin-tls.tieroptions._constructor_.md +0 -66
- package/doc/api/plugin-tls.tieroptions._extends.md +0 -11
- package/doc/api/plugin-tls.tieroptions._plainfulloption.md +0 -11
- package/doc/api/plugin-tls.tieroptions.extends.md +0 -15
- package/doc/api/plugin-tls.tieroptions.getmember.md +0 -53
- package/doc/api/plugin-tls.tieroptions.getvalue.md +0 -53
- package/doc/api/plugin-tls.tieroptions.md +0 -231
- package/doc/api/plugin-tls.tieroptions.option.md +0 -13
- package/doc/api/plugin-tls.tieroptions.plainfulloption.md +0 -18
- package/doc/api/plugin-tls.tieroptions.updatefulloption.md +0 -17
- package/doc/api/plugin-tls.tieroptionsdecorator.md +0 -71
- package/doc/api/plugin-tls.tieroptionspluginhost._constructor_.md +0 -48
- package/doc/api/plugin-tls.tieroptionspluginhost._defaultoptions.md +0 -11
- package/doc/api/plugin-tls.tieroptionspluginhost.defaultoptions.md +0 -13
- package/doc/api/plugin-tls.tieroptionspluginhost.md +0 -143
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [createPropertySetter](./plugin-tls.createpropertysetter.md)
|
|
4
|
-
|
|
5
|
-
## createPropertySetter() function
|
|
6
|
-
|
|
7
|
-
创建属性设置器
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function createPropertySetter(target: any, props: any): {
|
|
13
|
-
set: () => void;
|
|
14
|
-
unset: () => void;
|
|
15
|
-
};
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
## Parameters
|
|
19
|
-
|
|
20
|
-
<table><thead><tr><th>
|
|
21
|
-
|
|
22
|
-
Parameter
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</th><th>
|
|
26
|
-
|
|
27
|
-
Type
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</th><th>
|
|
31
|
-
|
|
32
|
-
Description
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
</th></tr></thead>
|
|
36
|
-
<tbody><tr><td>
|
|
37
|
-
|
|
38
|
-
target
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
</td><td>
|
|
42
|
-
|
|
43
|
-
any
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</td><td>
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
</td></tr>
|
|
50
|
-
<tr><td>
|
|
51
|
-
|
|
52
|
-
props
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
</td><td>
|
|
56
|
-
|
|
57
|
-
any
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
</td><td>
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
</td></tr>
|
|
64
|
-
</tbody></table>
|
|
65
|
-
|
|
66
|
-
**Returns:**
|
|
67
|
-
|
|
68
|
-
{ set: () => void; unset: () => void; }
|
|
69
|
-
|
|
70
|
-
会返回一个 set 和 unset 方法,set 方法用户将 props 中描述的属性值设置到 target 中, unset 方法用于恢复成原来的值
|
|
71
|
-
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [createTargetExtend](./plugin-tls.createtargetextend.md)
|
|
4
|
-
|
|
5
|
-
## createTargetExtend() function
|
|
6
|
-
|
|
7
|
-
创建用于扩展目标的便捷函数
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function createTargetExtend<C extends ClassType>(cla: C): <E>(ext: E & ThisType<InstanceType<C> & E> & PrivateMemberOfExtend<C>) => E & ThisType<C & E>;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Parameter
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Description
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th></tr></thead>
|
|
33
|
-
<tbody><tr><td>
|
|
34
|
-
|
|
35
|
-
cla
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
C
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
扩展的目标,也用作 this 的类型
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
</tbody></table>
|
|
50
|
-
|
|
51
|
-
**Returns:**
|
|
52
|
-
|
|
53
|
-
<E>(ext: E & ThisType<InstanceType<C> & E> & [PrivateMemberOfExtend](./plugin-tls.privatememberofextend.md)<!-- --><C>) => E & ThisType<C & E>
|
|
54
|
-
|
|
55
|
-
可以用于 扩展目标 的便利函数
|
|
56
|
-
|
|
57
|
-
## Remarks
|
|
58
|
-
|
|
59
|
-
它返回的便利函数的功能与 [targetExtend()](./plugin-tls.targetextend.md) 的功能一样,唯一区别是不再需要接收 cla 参数了
|
|
60
|
-
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [createTargetExtendWithInit](./plugin-tls.createtargetextendwithinit.md)
|
|
4
|
-
|
|
5
|
-
## createTargetExtendWithInit() function
|
|
6
|
-
|
|
7
|
-
创建用于扩展目标的便捷函数
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function createTargetExtendWithInit<C extends ClassType>(cla: C): <E>(ext: E & ThisType<InstanceType<C> & E> & PrivateMemberOfExtendWithInit<C>) => E & ThisType<C & E>;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Parameter
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Description
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th></tr></thead>
|
|
33
|
-
<tbody><tr><td>
|
|
34
|
-
|
|
35
|
-
cla
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
C
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
扩展的目标,也用作 this 的类型
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
</tbody></table>
|
|
50
|
-
|
|
51
|
-
**Returns:**
|
|
52
|
-
|
|
53
|
-
<E>(ext: E & ThisType<InstanceType<C> & E> & [PrivateMemberOfExtendWithInit](./plugin-tls.privatememberofextendwithinit.md)<!-- --><C>) => E & ThisType<C & E>
|
|
54
|
-
|
|
55
|
-
可以用于 扩展目标 的便利函数
|
|
56
|
-
|
|
57
|
-
## Remarks
|
|
58
|
-
|
|
59
|
-
它返回的便利函数的功能与 [targetExtendWithInit()](./plugin-tls.targetextendwithinit.md) 的功能一样,唯一区别是不再需要接收 cla 参数了
|
|
60
|
-
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [createTargetMixin](./plugin-tls.createtargetmixin.md)
|
|
4
|
-
|
|
5
|
-
## createTargetMixin() function
|
|
6
|
-
|
|
7
|
-
创建用于混合目标的便捷函数
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function createTargetMixin<T>(target: T): <M>(m: M & ThisType<T & M>) => M & ThisType<T & M>;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Parameter
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Description
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th></tr></thead>
|
|
33
|
-
<tbody><tr><td>
|
|
34
|
-
|
|
35
|
-
target
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
T
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
混合的目标,用作 this 的类型
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
</tbody></table>
|
|
50
|
-
|
|
51
|
-
**Returns:**
|
|
52
|
-
|
|
53
|
-
<M>(m: M & ThisType<T & M>) => M & ThisType<T & M>
|
|
54
|
-
|
|
55
|
-
可以用于 混合目标 的便利函数
|
|
56
|
-
|
|
57
|
-
## Remarks
|
|
58
|
-
|
|
59
|
-
它返回的便利函数的功能与 [targetMixin()](./plugin-tls.targetmixin.md) 的功能一样,唯一区别是不再需要接收 target 参数了
|
|
60
|
-
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [createTierModeOptionsPluginHost](./plugin-tls.createtiermodeoptionspluginhost.md)
|
|
4
|
-
|
|
5
|
-
## createTierModeOptionsPluginHost() function
|
|
6
|
-
|
|
7
|
-
创建带有选项机制的插件宿主类 比 直接使用 ModeOptionsPluginHost 提供了完善的类型推导
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function createTierModeOptionsPluginHost<HOST, P extends new (...args: any) => Object, Options extends {}, Mode extends string | number = string>(ParentClass: P): {
|
|
13
|
-
new (options: Options): {
|
|
14
|
-
get modeOptions(): TierModeOptions<Mode, Options>;
|
|
15
|
-
_modeOptions: TierModeOptions<Mode, Options>;
|
|
16
|
-
get mode(): Mode;
|
|
17
|
-
set mode(value: Mode);
|
|
18
|
-
get options(): Options;
|
|
19
|
-
get pluginManager(): import("..").PluginManager<any, import("..").IPlugin<any, any>>;
|
|
20
|
-
use<P_1 extends import("..").IPlugin<HOST, any>>(plugin: P_1, ...options: import("..").FormatUsePluginParameters<P_1>): void | import("..").PluginCreatedReturnType<P_1>;
|
|
21
|
-
destroyThis(): void;
|
|
22
|
-
readonly isDestroyed: boolean;
|
|
23
|
-
_isDestroyed: boolean;
|
|
24
|
-
_destroyers: import("@gby/destroyable").FunDestroyer[];
|
|
25
|
-
disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
26
|
-
cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
27
|
-
disposeObj<T extends unknown>(obj: T, sync?: boolean): T;
|
|
28
|
-
cancelDisposeObj<T extends unknown>(obj: T): T;
|
|
29
|
-
dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
30
|
-
dispose<T extends unknown>(obj: T, asyncDestroy?: boolean): T;
|
|
31
|
-
dispose<T extends unknown>(objOrFun: T, asyncDestroy?: boolean): T;
|
|
32
|
-
cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
33
|
-
cancelDispose<T extends unknown>(obj: T): T;
|
|
34
|
-
cancelDispose<T extends unknown>(objOrFun: T): T;
|
|
35
|
-
destroy(): true | undefined;
|
|
36
|
-
destroyAsync(): Promise<true | undefined>;
|
|
37
|
-
constructor: Function;
|
|
38
|
-
toString: (() => string) & (() => string);
|
|
39
|
-
toLocaleString: (() => string) & (() => string);
|
|
40
|
-
valueOf: (() => Object) & (() => Object);
|
|
41
|
-
hasOwnProperty: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean);
|
|
42
|
-
isPrototypeOf: ((v: Object) => boolean) & ((v: Object) => boolean);
|
|
43
|
-
propertyIsEnumerable: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean);
|
|
44
|
-
};
|
|
45
|
-
readonly modeOptions: TierModeOptions<string, Options>;
|
|
46
|
-
get pluginManager(): import("..").PluginManager<typeof import("./PluginHost").PluginHost & HOST & (new (...args: any) => {
|
|
47
|
-
readonly isDestroyed: boolean;
|
|
48
|
-
_isDestroyed: boolean;
|
|
49
|
-
_destroyers: import("@gby/destroyable").FunDestroyer[];
|
|
50
|
-
disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
51
|
-
cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
52
|
-
disposeObj<T extends any>(obj: T, sync?: boolean): T;
|
|
53
|
-
cancelDisposeObj<T extends any>(obj: T): T;
|
|
54
|
-
dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
55
|
-
dispose<T extends any>(obj: T, asyncDestroy?: boolean): T;
|
|
56
|
-
dispose<T extends any | import("@gby/destroyable").FunDestroyer>(objOrFun: T, asyncDestroy?: boolean): T;
|
|
57
|
-
cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
58
|
-
cancelDispose<T extends any>(obj: T): T;
|
|
59
|
-
cancelDispose<T extends any | import("@gby/destroyable").FunDestroyer>(objOrFun: T): T;
|
|
60
|
-
destroyThis(): void;
|
|
61
|
-
destroy(): true | undefined;
|
|
62
|
-
destroyAsync(): Promise<true | undefined>;
|
|
63
|
-
constructor: Function;
|
|
64
|
-
toString(): string;
|
|
65
|
-
toLocaleString(): string;
|
|
66
|
-
valueOf(): Object;
|
|
67
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
68
|
-
isPrototypeOf(v: Object): boolean;
|
|
69
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
70
|
-
}) & P, import("..").IPlugin<HOST, any>>;
|
|
71
|
-
_pluginManager: import("..").PluginManager<typeof import("./PluginHost").PluginHost & HOST & (new (...args: any) => {
|
|
72
|
-
readonly isDestroyed: boolean;
|
|
73
|
-
_isDestroyed: boolean;
|
|
74
|
-
_destroyers: import("@gby/destroyable").FunDestroyer[];
|
|
75
|
-
disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
76
|
-
cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
77
|
-
disposeObj<T extends any>(obj: T, sync?: boolean): T;
|
|
78
|
-
cancelDisposeObj<T extends any>(obj: T): T;
|
|
79
|
-
dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
80
|
-
dispose<T extends any>(obj: T, asyncDestroy?: boolean): T;
|
|
81
|
-
dispose<T extends any | import("@gby/destroyable").FunDestroyer>(objOrFun: T, asyncDestroy?: boolean): T;
|
|
82
|
-
cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
83
|
-
cancelDispose<T extends any>(obj: T): T;
|
|
84
|
-
cancelDispose<T extends any | import("@gby/destroyable").FunDestroyer>(objOrFun: T): T;
|
|
85
|
-
destroyThis(): void;
|
|
86
|
-
destroy(): true | undefined;
|
|
87
|
-
destroyAsync(): Promise<true | undefined>;
|
|
88
|
-
constructor: Function;
|
|
89
|
-
toString(): string;
|
|
90
|
-
toLocaleString(): string;
|
|
91
|
-
valueOf(): Object;
|
|
92
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
93
|
-
isPrototypeOf(v: Object): boolean;
|
|
94
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
95
|
-
}) & P, import("..").IPlugin<HOST, any>>;
|
|
96
|
-
use<P_1 extends import("..").IPlugin<HOST, any>>(plugin: P_1, ...options: import("..").FormatUsePluginParameters<P_1>): void | ReturnType<P_1["used"]>;
|
|
97
|
-
} & P;
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
## Parameters
|
|
101
|
-
|
|
102
|
-
<table><thead><tr><th>
|
|
103
|
-
|
|
104
|
-
Parameter
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
</th><th>
|
|
108
|
-
|
|
109
|
-
Type
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
</th><th>
|
|
113
|
-
|
|
114
|
-
Description
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
</th></tr></thead>
|
|
118
|
-
<tbody><tr><td>
|
|
119
|
-
|
|
120
|
-
ParentClass
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
</td><td>
|
|
124
|
-
|
|
125
|
-
P
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
</td><td>
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
</td></tr>
|
|
132
|
-
</tbody></table>
|
|
133
|
-
|
|
134
|
-
**Returns:**
|
|
135
|
-
|
|
136
|
-
{ new (options: Options): { get modeOptions(): [TierModeOptions](./plugin-tls.tiermodeoptions.md)<!-- --><Mode, Options>; \_modeOptions: [TierModeOptions](./plugin-tls.tiermodeoptions.md)<!-- --><Mode, Options>; get mode(): Mode; set mode(value: Mode); get options(): Options; get pluginManager(): import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- --><any, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- --><any, any>>; use<P\_1 extends import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- --><HOST, any>>(plugin: P\_1, ...options: import("..").[FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- --><P\_1>): void \| import("..").[PluginCreatedReturnType](./plugin-tls.plugincreatedreturntype.md)<!-- --><P\_1>; destroyThis(): void; readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; disposeObj<T extends unknown>(obj: T, sync?: boolean): T; cancelDisposeObj<T extends unknown>(obj: T): T; dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; dispose<T extends unknown>(obj: T, asyncDestroy?: boolean): T; dispose<T extends unknown>(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDispose<T extends unknown>(obj: T): T; cancelDispose<T extends unknown>(objOrFun: T): T; destroy(): true \| undefined; destroyAsync(): Promise<true \| undefined>; constructor: Function; toString: (() => string) & (() => string); toLocaleString: (() => string) & (() => string); valueOf: (() => Object) & (() => Object); hasOwnProperty: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean); isPrototypeOf: ((v: Object) => boolean) & ((v: Object) => boolean); propertyIsEnumerable: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean); }; readonly modeOptions: [TierModeOptions](./plugin-tls.tiermodeoptions.md)<!-- --><string, Options>; get pluginManager(): import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- --><typeof import("./PluginHost").[PluginHost](./plugin-tls.pluginhost.md) & HOST & (new (...args: any) => { readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; disposeObj<T extends any>(obj: T, sync?: boolean): T; cancelDisposeObj<T extends any>(obj: T): T; dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; dispose<T extends any>(obj: T, asyncDestroy?: boolean): T; dispose<T extends any \| import("@gby/destroyable").FunDestroyer>(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDispose<T extends any>(obj: T): T; cancelDispose<T extends any \| import("@gby/destroyable").FunDestroyer>(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise<true \| undefined>; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: PropertyKey): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: PropertyKey): boolean; }) & P, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- --><HOST, any>>; \_pluginManager: import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- --><typeof import("./PluginHost").[PluginHost](./plugin-tls.pluginhost.md) & HOST & (new (...args: any) => { readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; disposeObj<T extends any>(obj: T, sync?: boolean): T; cancelDisposeObj<T extends any>(obj: T): T; dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; dispose<T extends any>(obj: T, asyncDestroy?: boolean): T; dispose<T extends any \| import("@gby/destroyable").FunDestroyer>(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDispose<T extends any>(obj: T): T; cancelDispose<T extends any \| import("@gby/destroyable").FunDestroyer>(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise<true \| undefined>; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: PropertyKey): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: PropertyKey): boolean; }) & P, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- --><HOST, any>>; use<P\_1 extends import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- --><HOST, any>>(plugin: P\_1, ...options: import("..").[FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- --><P\_1>): void \| ReturnType<P\_1\["used"\]>; } & P
|
|
137
|
-
|
|
138
|
-
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [createTierOptionsPluginHost](./plugin-tls.createtieroptionspluginhost.md)
|
|
4
|
-
|
|
5
|
-
## createTierOptionsPluginHost() function
|
|
6
|
-
|
|
7
|
-
创建带有选项机制的插件宿主类 比 直接使用 OptionsPluginHost 提供了完善的类型推导
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function createTierOptionsPluginHost<HOST, P extends new (...args: any) => Object, Options extends {}>(ParentClass: P): {
|
|
13
|
-
new (options: Options): {
|
|
14
|
-
get defaultOptions(): TierOptions<Options>;
|
|
15
|
-
_defaultOptions: TierOptions<Options>;
|
|
16
|
-
get pluginManager(): import("..").PluginManager<any, import("..").IPlugin<any, any>>;
|
|
17
|
-
use<P_1 extends import("..").IPlugin<HOST, any>>(plugin: P_1, ...options: import("..").FormatUsePluginParameters<P_1>): void | import("..").PluginCreatedReturnType<P_1>;
|
|
18
|
-
destroyThis(): void;
|
|
19
|
-
readonly isDestroyed: boolean;
|
|
20
|
-
_isDestroyed: boolean;
|
|
21
|
-
_destroyers: import("@gby/destroyable").FunDestroyer[];
|
|
22
|
-
disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
23
|
-
cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
24
|
-
disposeObj<T extends unknown>(obj: T, sync?: boolean): T;
|
|
25
|
-
cancelDisposeObj<T extends unknown>(obj: T): T;
|
|
26
|
-
dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
27
|
-
dispose<T extends unknown>(obj: T, asyncDestroy?: boolean): T;
|
|
28
|
-
dispose<T extends unknown>(objOrFun: T, asyncDestroy?: boolean): T;
|
|
29
|
-
cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
30
|
-
cancelDispose<T extends unknown>(obj: T): T;
|
|
31
|
-
cancelDispose<T extends unknown>(objOrFun: T): T;
|
|
32
|
-
destroy(): true | undefined;
|
|
33
|
-
destroyAsync(): Promise<true | undefined>;
|
|
34
|
-
constructor: Function;
|
|
35
|
-
toString: (() => string) & (() => string);
|
|
36
|
-
toLocaleString: (() => string) & (() => string);
|
|
37
|
-
valueOf: (() => Object) & (() => Object);
|
|
38
|
-
hasOwnProperty: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean);
|
|
39
|
-
isPrototypeOf: ((v: Object) => boolean) & ((v: Object) => boolean);
|
|
40
|
-
propertyIsEnumerable: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean);
|
|
41
|
-
};
|
|
42
|
-
readonly defaultOptions: TierOptions<Options>;
|
|
43
|
-
get pluginManager(): import("..").PluginManager<typeof import("./PluginHost").PluginHost & HOST & (new (...args: any) => {
|
|
44
|
-
readonly isDestroyed: boolean;
|
|
45
|
-
_isDestroyed: boolean;
|
|
46
|
-
_destroyers: import("@gby/destroyable").FunDestroyer[];
|
|
47
|
-
disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
48
|
-
cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
49
|
-
disposeObj<T extends any>(obj: T, sync?: boolean): T;
|
|
50
|
-
cancelDisposeObj<T extends any>(obj: T): T;
|
|
51
|
-
dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
52
|
-
dispose<T extends any>(obj: T, asyncDestroy?: boolean): T;
|
|
53
|
-
dispose<T extends any | import("@gby/destroyable").FunDestroyer>(objOrFun: T, asyncDestroy?: boolean): T;
|
|
54
|
-
cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
55
|
-
cancelDispose<T extends any>(obj: T): T;
|
|
56
|
-
cancelDispose<T extends any | import("@gby/destroyable").FunDestroyer>(objOrFun: T): T;
|
|
57
|
-
destroyThis(): void;
|
|
58
|
-
destroy(): true | undefined;
|
|
59
|
-
destroyAsync(): Promise<true | undefined>;
|
|
60
|
-
constructor: Function;
|
|
61
|
-
toString(): string;
|
|
62
|
-
toLocaleString(): string;
|
|
63
|
-
valueOf(): Object;
|
|
64
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
65
|
-
isPrototypeOf(v: Object): boolean;
|
|
66
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
67
|
-
}) & P, import("..").IPlugin<HOST, any>>;
|
|
68
|
-
_pluginManager: import("..").PluginManager<typeof import("./PluginHost").PluginHost & HOST & (new (...args: any) => {
|
|
69
|
-
readonly isDestroyed: boolean;
|
|
70
|
-
_isDestroyed: boolean;
|
|
71
|
-
_destroyers: import("@gby/destroyable").FunDestroyer[];
|
|
72
|
-
disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
73
|
-
cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
74
|
-
disposeObj<T extends any>(obj: T, sync?: boolean): T;
|
|
75
|
-
cancelDisposeObj<T extends any>(obj: T): T;
|
|
76
|
-
dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
77
|
-
dispose<T extends any>(obj: T, asyncDestroy?: boolean): T;
|
|
78
|
-
dispose<T extends any | import("@gby/destroyable").FunDestroyer>(objOrFun: T, asyncDestroy?: boolean): T;
|
|
79
|
-
cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
80
|
-
cancelDispose<T extends any>(obj: T): T;
|
|
81
|
-
cancelDispose<T extends any | import("@gby/destroyable").FunDestroyer>(objOrFun: T): T;
|
|
82
|
-
destroyThis(): void;
|
|
83
|
-
destroy(): true | undefined;
|
|
84
|
-
destroyAsync(): Promise<true | undefined>;
|
|
85
|
-
constructor: Function;
|
|
86
|
-
toString(): string;
|
|
87
|
-
toLocaleString(): string;
|
|
88
|
-
valueOf(): Object;
|
|
89
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
90
|
-
isPrototypeOf(v: Object): boolean;
|
|
91
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
92
|
-
}) & P, import("..").IPlugin<HOST, any>>;
|
|
93
|
-
use<P_1 extends import("..").IPlugin<HOST, any>>(plugin: P_1, ...options: import("..").FormatUsePluginParameters<P_1>): void | ReturnType<P_1["used"]>;
|
|
94
|
-
} & P;
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
## Parameters
|
|
98
|
-
|
|
99
|
-
<table><thead><tr><th>
|
|
100
|
-
|
|
101
|
-
Parameter
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
</th><th>
|
|
105
|
-
|
|
106
|
-
Type
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
</th><th>
|
|
110
|
-
|
|
111
|
-
Description
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
</th></tr></thead>
|
|
115
|
-
<tbody><tr><td>
|
|
116
|
-
|
|
117
|
-
ParentClass
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
</td><td>
|
|
121
|
-
|
|
122
|
-
P
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
</td><td>
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
</td></tr>
|
|
129
|
-
</tbody></table>
|
|
130
|
-
|
|
131
|
-
**Returns:**
|
|
132
|
-
|
|
133
|
-
{ new (options: Options): { get defaultOptions(): [TierOptions](./plugin-tls.tieroptions.md)<!-- --><Options>; \_defaultOptions: [TierOptions](./plugin-tls.tieroptions.md)<!-- --><Options>; get pluginManager(): import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- --><any, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- --><any, any>>; use<P\_1 extends import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- --><HOST, any>>(plugin: P\_1, ...options: import("..").[FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- --><P\_1>): void \| import("..").[PluginCreatedReturnType](./plugin-tls.plugincreatedreturntype.md)<!-- --><P\_1>; destroyThis(): void; readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; disposeObj<T extends unknown>(obj: T, sync?: boolean): T; cancelDisposeObj<T extends unknown>(obj: T): T; dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; dispose<T extends unknown>(obj: T, asyncDestroy?: boolean): T; dispose<T extends unknown>(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDispose<T extends unknown>(obj: T): T; cancelDispose<T extends unknown>(objOrFun: T): T; destroy(): true \| undefined; destroyAsync(): Promise<true \| undefined>; constructor: Function; toString: (() => string) & (() => string); toLocaleString: (() => string) & (() => string); valueOf: (() => Object) & (() => Object); hasOwnProperty: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean); isPrototypeOf: ((v: Object) => boolean) & ((v: Object) => boolean); propertyIsEnumerable: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean); }; readonly defaultOptions: [TierOptions](./plugin-tls.tieroptions.md)<!-- --><Options>; get pluginManager(): import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- --><typeof import("./PluginHost").[PluginHost](./plugin-tls.pluginhost.md) & HOST & (new (...args: any) => { readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; disposeObj<T extends any>(obj: T, sync?: boolean): T; cancelDisposeObj<T extends any>(obj: T): T; dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; dispose<T extends any>(obj: T, asyncDestroy?: boolean): T; dispose<T extends any \| import("@gby/destroyable").FunDestroyer>(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDispose<T extends any>(obj: T): T; cancelDispose<T extends any \| import("@gby/destroyable").FunDestroyer>(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise<true \| undefined>; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: PropertyKey): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: PropertyKey): boolean; }) & P, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- --><HOST, any>>; \_pluginManager: import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- --><typeof import("./PluginHost").[PluginHost](./plugin-tls.pluginhost.md) & HOST & (new (...args: any) => { readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; disposeObj<T extends any>(obj: T, sync?: boolean): T; cancelDisposeObj<T extends any>(obj: T): T; dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; dispose<T extends any>(obj: T, asyncDestroy?: boolean): T; dispose<T extends any \| import("@gby/destroyable").FunDestroyer>(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDispose<T extends any>(obj: T): T; cancelDispose<T extends any \| import("@gby/destroyable").FunDestroyer>(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise<true \| undefined>; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: PropertyKey): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: PropertyKey): boolean; }) & P, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- --><HOST, any>>; use<P\_1 extends import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- --><HOST, any>>(plugin: P\_1, ...options: import("..").[FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- --><P\_1>): void \| ReturnType<P\_1\["used"\]>; } & P
|
|
134
|
-
|
|
135
|
-
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [defineExtend](./plugin-tls.defineextend.md)
|
|
4
|
-
|
|
5
|
-
## defineExtend() function
|
|
6
|
-
|
|
7
|
-
定义扩展的类型便利函数
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function defineExtend<C extends ClassType, E>(cla: C, ext: E & ThisType<InstanceType<C> & E> & PrivateMemberOfExtend<C>): E & ThisType<C & E>;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Parameter
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Description
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th></tr></thead>
|
|
33
|
-
<tbody><tr><td>
|
|
34
|
-
|
|
35
|
-
cla
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
C
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
扩展的目标,用作 this 的类型
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
<tr><td>
|
|
50
|
-
|
|
51
|
-
ext
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</td><td>
|
|
55
|
-
|
|
56
|
-
E & ThisType<InstanceType<C> & E> & [PrivateMemberOfExtend](./plugin-tls.privatememberofextend.md)<!-- --><C>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
</td><td>
|
|
60
|
-
|
|
61
|
-
描述扩展内容的对象,会自动更改其this的类型
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
</td></tr>
|
|
65
|
-
</tbody></table>
|
|
66
|
-
|
|
67
|
-
**Returns:**
|
|
68
|
-
|
|
69
|
-
E & ThisType<C & E>
|
|
70
|
-
|
|
71
|
-
返回注入了 this 类型的 ext 对象本身
|
|
72
|
-
|
|
73
|
-
## Remarks
|
|
74
|
-
|
|
75
|
-
它会更改 ext 中方法的this指向为 cla & ext,不会真的执行扩展操作。
|
|
76
|
-
|
|
77
|
-
其中 ext.\_constructor 会被保存在 cla.\_constructors 属性中,它是一个数组。
|
|
78
|
-
|
|
79
|
-
cla 需要在自己的构建函数中逐个调用 cla.\_constructors 中的函数
|
|
80
|
-
|