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,81 +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) > [ClassExtenderPrivateMember](./plugin-tls.classextenderprivatemember.md)
|
|
4
|
-
|
|
5
|
-
## ClassExtenderPrivateMember interface
|
|
6
|
-
|
|
7
|
-
类扩展者的私有方法
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export interface ClassExtenderPrivateMember<C extends new (...args: any) => Object>
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Properties
|
|
16
|
-
|
|
17
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Property
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Modifiers
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Type
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th><th>
|
|
33
|
-
|
|
34
|
-
Description
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
</th></tr></thead>
|
|
38
|
-
<tbody><tr><td>
|
|
39
|
-
|
|
40
|
-
[\_constructors](./plugin-tls.classextenderprivatemember._constructors.md)
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
`readonly`
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td><td>
|
|
49
|
-
|
|
50
|
-
((this: InstanceType<C>, ...args: ConstructorParameters<C>) => void)\[\]
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
</td><td>
|
|
54
|
-
|
|
55
|
-
保存扩展类自定义的构建函数
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
</td></tr>
|
|
59
|
-
<tr><td>
|
|
60
|
-
|
|
61
|
-
[\_destroys](./plugin-tls.classextenderprivatemember._destroys.md)
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
</td><td>
|
|
65
|
-
|
|
66
|
-
`readonly`
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
</td><td>
|
|
70
|
-
|
|
71
|
-
((this: InstanceType<C>) => void)\[\]
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
</td><td>
|
|
75
|
-
|
|
76
|
-
保存扩展类自定义的销毁函数
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
</td></tr>
|
|
80
|
-
</tbody></table>
|
|
81
|
-
|
|
@@ -1,13 +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) > [ClassExtenderPrivateMemberWithInit](./plugin-tls.classextenderprivatememberwithinit.md) > [\_inits](./plugin-tls.classextenderprivatememberwithinit._inits.md)
|
|
4
|
-
|
|
5
|
-
## ClassExtenderPrivateMemberWithInit.\_inits property
|
|
6
|
-
|
|
7
|
-
保存扩展类中自定义的初始化方法
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
readonly _inits: ((this: InstanceType<C>, ...args: InitParams) => void)[];
|
|
13
|
-
```
|
|
@@ -1,61 +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) > [ClassExtenderPrivateMemberWithInit](./plugin-tls.classextenderprivatememberwithinit.md)
|
|
4
|
-
|
|
5
|
-
## ClassExtenderPrivateMemberWithInit interface
|
|
6
|
-
|
|
7
|
-
类扩展者的私有方法
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export interface ClassExtenderPrivateMemberWithInit<C extends new (...args: any) => Object, InitParams extends any[] = any> extends ClassExtenderPrivateMember<C>
|
|
13
|
-
```
|
|
14
|
-
**Extends:** [ClassExtenderPrivateMember](./plugin-tls.classextenderprivatemember.md)<!-- --><C>
|
|
15
|
-
|
|
16
|
-
## Properties
|
|
17
|
-
|
|
18
|
-
<table><thead><tr><th>
|
|
19
|
-
|
|
20
|
-
Property
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
</th><th>
|
|
24
|
-
|
|
25
|
-
Modifiers
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
</th><th>
|
|
29
|
-
|
|
30
|
-
Type
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
</th><th>
|
|
34
|
-
|
|
35
|
-
Description
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</th></tr></thead>
|
|
39
|
-
<tbody><tr><td>
|
|
40
|
-
|
|
41
|
-
[\_inits](./plugin-tls.classextenderprivatememberwithinit._inits.md)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
</td><td>
|
|
45
|
-
|
|
46
|
-
`readonly`
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
</td><td>
|
|
50
|
-
|
|
51
|
-
((this: InstanceType<C>, ...args: InitParams) => void)\[\]
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</td><td>
|
|
55
|
-
|
|
56
|
-
保存扩展类中自定义的初始化方法
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
</td></tr>
|
|
60
|
-
</tbody></table>
|
|
61
|
-
|
|
@@ -1,15 +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) > [ClassExtenderWithInit](./plugin-tls.classextenderwithinit.md)
|
|
4
|
-
|
|
5
|
-
## ClassExtenderWithInit type
|
|
6
|
-
|
|
7
|
-
类扩展者
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export type ClassExtenderWithInit<C extends new (...args: any) => Object, InitParams extends any[] = any> = C & ClassExtenderPrivateMemberWithInit<C, InitParams>;
|
|
13
|
-
```
|
|
14
|
-
**References:** [ClassExtenderPrivateMemberWithInit](./plugin-tls.classextenderprivatememberwithinit.md)
|
|
15
|
-
|
|
@@ -1,50 +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) > [ClassType](./plugin-tls.classtype.md) > [(new)](./plugin-tls.classtype._new_.md)
|
|
4
|
-
|
|
5
|
-
## ClassType.(new)
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
new (...args: Arg): Instance;
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Parameters
|
|
14
|
-
|
|
15
|
-
<table><thead><tr><th>
|
|
16
|
-
|
|
17
|
-
Parameter
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
</th><th>
|
|
21
|
-
|
|
22
|
-
Type
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</th><th>
|
|
26
|
-
|
|
27
|
-
Description
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</th></tr></thead>
|
|
31
|
-
<tbody><tr><td>
|
|
32
|
-
|
|
33
|
-
args
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</td><td>
|
|
37
|
-
|
|
38
|
-
Arg
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
</td><td>
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
</td></tr>
|
|
45
|
-
</tbody></table>
|
|
46
|
-
|
|
47
|
-
**Returns:**
|
|
48
|
-
|
|
49
|
-
Instance
|
|
50
|
-
|
|
@@ -1,38 +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) > [ClassType](./plugin-tls.classtype.md)
|
|
4
|
-
|
|
5
|
-
## ClassType interface
|
|
6
|
-
|
|
7
|
-
类的类型、构造函数的类型
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export interface ClassType<Arg extends any[] = any, Instance = any>
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Methods
|
|
16
|
-
|
|
17
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Method
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Description
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th></tr></thead>
|
|
28
|
-
<tbody><tr><td>
|
|
29
|
-
|
|
30
|
-
[(new)(args)](./plugin-tls.classtype._new_.md)
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
</td><td>
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</td></tr>
|
|
37
|
-
</tbody></table>
|
|
38
|
-
|
|
@@ -1,18 +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) > [commonModeName](./plugin-tls.commonmodename.md)
|
|
4
|
-
|
|
5
|
-
## commonModeName variable
|
|
6
|
-
|
|
7
|
-
一般模式的名字
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
commonModeName = "common"
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Remarks
|
|
16
|
-
|
|
17
|
-
一般模式,其它模式可以继承该模式
|
|
18
|
-
|
|
@@ -1,58 +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) > [createCallerOfPrivateMemberOfExtend](./plugin-tls.createcallerofprivatememberofextend.md)
|
|
4
|
-
|
|
5
|
-
## createCallerOfPrivateMemberOfExtend() function
|
|
6
|
-
|
|
7
|
-
创建扩展的私有方法的调用者
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function createCallerOfPrivateMemberOfExtend<C extends ClassType>(cla: C): {
|
|
13
|
-
constructed: (thisArg: any, args: any[]) => void;
|
|
14
|
-
initialized: (thisArg: any, args: any[]) => void;
|
|
15
|
-
destroyed: (thisArg: any, args: any[]) => void;
|
|
16
|
-
};
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Parameters
|
|
20
|
-
|
|
21
|
-
<table><thead><tr><th>
|
|
22
|
-
|
|
23
|
-
Parameter
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
</th><th>
|
|
27
|
-
|
|
28
|
-
Type
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
</th><th>
|
|
32
|
-
|
|
33
|
-
Description
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</th></tr></thead>
|
|
37
|
-
<tbody><tr><td>
|
|
38
|
-
|
|
39
|
-
cla
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
</td><td>
|
|
43
|
-
|
|
44
|
-
C
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
</td><td>
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
</td></tr>
|
|
51
|
-
</tbody></table>
|
|
52
|
-
|
|
53
|
-
**Returns:**
|
|
54
|
-
|
|
55
|
-
{ constructed: (thisArg: any, args: any\[\]) => void; initialized: (thisArg: any, args: any\[\]) => void; destroyed: (thisArg: any, args: any\[\]) => void; }
|
|
56
|
-
|
|
57
|
-
constructed:执行所有 `_constructor` 的便利函数;initialized:执行所有 `_inits` 的便利函数
|
|
58
|
-
|
|
@@ -1,23 +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) > [createDefineMixin](./plugin-tls.createdefinemixin.md)
|
|
4
|
-
|
|
5
|
-
## createDefineMixin() function
|
|
6
|
-
|
|
7
|
-
创建定义混合的类型便利函数
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function createDefineMixin<T>(): <M>(target: T, mixin: M & ThisType<T & M>) => M & ThisType<T & M>;
|
|
13
|
-
```
|
|
14
|
-
**Returns:**
|
|
15
|
-
|
|
16
|
-
<M>(target: T, mixin: M & ThisType<T & M>) => M & ThisType<T & M>
|
|
17
|
-
|
|
18
|
-
可以用于 定义混合的 类型便利函数
|
|
19
|
-
|
|
20
|
-
## Remarks
|
|
21
|
-
|
|
22
|
-
它返回的便利函数的功能与 [defineMixin()](./plugin-tls.definemixin.md) 的功能一样,唯一区别是不再需要接收 target 参数了
|
|
23
|
-
|
|
@@ -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) > [createExtendTarget](./plugin-tls.createextendtarget.md)
|
|
4
|
-
|
|
5
|
-
## createExtendTarget() function
|
|
6
|
-
|
|
7
|
-
创建用于扩展目标工具函数
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function createExtendTarget<C extends ClassType>(cla: C): <E>(ext: E & ThisType<InstanceType<C> & E> & PrivateMemberOfExtend<C>) => ClassType<ConstructorParameters<C>, E & ThisType<InstanceType<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>) => [ClassType](./plugin-tls.classtype.md)<!-- --><ConstructorParameters<C>, E & ThisType<InstanceType<C> & E>>
|
|
54
|
-
|
|
55
|
-
可以用于 扩展目标 的便利函数
|
|
56
|
-
|
|
57
|
-
## Remarks
|
|
58
|
-
|
|
59
|
-
它返回的便利函数的功能与 [extendTarget()](./plugin-tls.extendtarget.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) > [createExtendTargetWithInit](./plugin-tls.createextendtargetwithinit.md)
|
|
4
|
-
|
|
5
|
-
## createExtendTargetWithInit() function
|
|
6
|
-
|
|
7
|
-
创建用于扩展目标工具函数
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function createExtendTargetWithInit<C extends ClassType>(cla: C): <E>(ext: E & ThisType<InstanceType<C> & E> & PrivateMemberOfExtendWithInit<C>) => ClassType<ConstructorParameters<C>, E & ThisType<InstanceType<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>) => [ClassType](./plugin-tls.classtype.md)<!-- --><ConstructorParameters<C>, E & ThisType<InstanceType<C> & E>>
|
|
54
|
-
|
|
55
|
-
可以用于 扩展目标 的便利函数
|
|
56
|
-
|
|
57
|
-
## Remarks
|
|
58
|
-
|
|
59
|
-
它返回的便利函数的功能与 [extendTargetWithInit()](./plugin-tls.extendtargetwithinit.md) 的功能一样,唯一区别是不再需要接收 cla 参数了
|
|
60
|
-
|
|
@@ -1,58 +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) > [createMixinTarget](./plugin-tls.createmixintarget.md)
|
|
4
|
-
|
|
5
|
-
## createMixinTarget() function
|
|
6
|
-
|
|
7
|
-
创建用于混合目标工具函数
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function createMixinTarget<T>(target: T): <M>(m: M & ThisType<T & M>) => M & ThisType<T & M> & T;
|
|
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
|
-
|
|
46
|
-
</td></tr>
|
|
47
|
-
</tbody></table>
|
|
48
|
-
|
|
49
|
-
**Returns:**
|
|
50
|
-
|
|
51
|
-
<M>(m: M & ThisType<T & M>) => M & ThisType<T & M> & T
|
|
52
|
-
|
|
53
|
-
可以用于 混合目标 的便利函数
|
|
54
|
-
|
|
55
|
-
## Remarks
|
|
56
|
-
|
|
57
|
-
它返回的便利函数的功能与 [mixinTarget()](./plugin-tls.mixintarget.md) 的功能一样,唯一区别是不再需要接收 target 参数了
|
|
58
|
-
|
|
@@ -1,140 +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) > [createPluginHost](./plugin-tls.createpluginhost.md)
|
|
4
|
-
|
|
5
|
-
## createPluginHost() function
|
|
6
|
-
|
|
7
|
-
创建插件的缩主类
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function createPluginHost<HOST, P extends new (...args: any) => Object, Plugin extends IPlugin<HOST, any> = IPlugin<HOST, any>>(ParentClass: P): {
|
|
13
|
-
new (...args: any): {
|
|
14
|
-
get pluginManager(): PluginManager<any, IPlugin<any, any>>;
|
|
15
|
-
use<P_1 extends Plugin>(plugin: P_1, ...options: FormatUsePluginParameters<P_1>): PluginCreatedReturnType<P_1> | void;
|
|
16
|
-
destroyThis(): void;
|
|
17
|
-
readonly isDestroyed: boolean;
|
|
18
|
-
_isDestroyed: boolean;
|
|
19
|
-
_destroyers: import("@gby/destroyable").FunDestroyer[];
|
|
20
|
-
disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
21
|
-
cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
22
|
-
disposeObj<T extends unknown>(obj: T, sync?: boolean): T;
|
|
23
|
-
cancelDisposeObj<T extends unknown>(obj: T): T;
|
|
24
|
-
dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
25
|
-
dispose<T extends unknown>(obj: T, asyncDestroy?: boolean): T;
|
|
26
|
-
dispose<T extends unknown>(objOrFun: T, asyncDestroy?: boolean): T;
|
|
27
|
-
cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
28
|
-
cancelDispose<T extends unknown>(obj: T): T;
|
|
29
|
-
cancelDispose<T extends unknown>(objOrFun: T): T;
|
|
30
|
-
destroy(): true | undefined;
|
|
31
|
-
destroyAsync(): Promise<true | undefined>;
|
|
32
|
-
constructor: Function;
|
|
33
|
-
toString: (() => string) & (() => string);
|
|
34
|
-
toLocaleString: (() => string) & (() => string);
|
|
35
|
-
valueOf: (() => Object) & (() => Object);
|
|
36
|
-
hasOwnProperty: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean);
|
|
37
|
-
isPrototypeOf: ((v: Object) => boolean) & ((v: Object) => boolean);
|
|
38
|
-
propertyIsEnumerable: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean);
|
|
39
|
-
};
|
|
40
|
-
get pluginManager(): PluginManager<typeof PluginHost & HOST & (new (...args: any) => {
|
|
41
|
-
readonly isDestroyed: boolean;
|
|
42
|
-
_isDestroyed: boolean;
|
|
43
|
-
_destroyers: import("@gby/destroyable").FunDestroyer[];
|
|
44
|
-
disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
45
|
-
cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
46
|
-
disposeObj<T extends any>(obj: T, sync?: boolean): T;
|
|
47
|
-
cancelDisposeObj<T extends any>(obj: T): T;
|
|
48
|
-
dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
49
|
-
dispose<T extends any>(obj: T, asyncDestroy?: boolean): T;
|
|
50
|
-
dispose<T extends any | import("@gby/destroyable").FunDestroyer>(objOrFun: T, asyncDestroy?: boolean): T;
|
|
51
|
-
cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
52
|
-
cancelDispose<T extends any>(obj: T): T;
|
|
53
|
-
cancelDispose<T extends any | import("@gby/destroyable").FunDestroyer>(objOrFun: T): T;
|
|
54
|
-
destroyThis(): void;
|
|
55
|
-
destroy(): true | undefined;
|
|
56
|
-
destroyAsync(): Promise<true | undefined>;
|
|
57
|
-
constructor: Function;
|
|
58
|
-
toString(): string;
|
|
59
|
-
toLocaleString(): string;
|
|
60
|
-
valueOf(): Object;
|
|
61
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
62
|
-
isPrototypeOf(v: Object): boolean;
|
|
63
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
64
|
-
}) & P, Plugin>;
|
|
65
|
-
_pluginManager: PluginManager<typeof PluginHost & HOST & (new (...args: any) => {
|
|
66
|
-
readonly isDestroyed: boolean;
|
|
67
|
-
_isDestroyed: boolean;
|
|
68
|
-
_destroyers: import("@gby/destroyable").FunDestroyer[];
|
|
69
|
-
disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
70
|
-
cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
71
|
-
disposeObj<T extends any>(obj: T, sync?: boolean): T;
|
|
72
|
-
cancelDisposeObj<T extends any>(obj: T): T;
|
|
73
|
-
dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
74
|
-
dispose<T extends any>(obj: T, asyncDestroy?: boolean): T;
|
|
75
|
-
dispose<T extends any | import("@gby/destroyable").FunDestroyer>(objOrFun: T, asyncDestroy?: boolean): T;
|
|
76
|
-
cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
77
|
-
cancelDispose<T extends any>(obj: T): T;
|
|
78
|
-
cancelDispose<T extends any | import("@gby/destroyable").FunDestroyer>(objOrFun: T): T;
|
|
79
|
-
destroyThis(): void;
|
|
80
|
-
destroy(): true | undefined;
|
|
81
|
-
destroyAsync(): Promise<true | undefined>;
|
|
82
|
-
constructor: Function;
|
|
83
|
-
toString(): string;
|
|
84
|
-
toLocaleString(): string;
|
|
85
|
-
valueOf(): Object;
|
|
86
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
87
|
-
isPrototypeOf(v: Object): boolean;
|
|
88
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
89
|
-
}) & P, Plugin>;
|
|
90
|
-
use<P_1 extends Plugin>(plugin: P_1, ...options: FormatUsePluginParameters<P_1>): void | ReturnType<P_1["used"]>;
|
|
91
|
-
} & P;
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
## Parameters
|
|
95
|
-
|
|
96
|
-
<table><thead><tr><th>
|
|
97
|
-
|
|
98
|
-
Parameter
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
</th><th>
|
|
102
|
-
|
|
103
|
-
Type
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
</th><th>
|
|
107
|
-
|
|
108
|
-
Description
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
</th></tr></thead>
|
|
112
|
-
<tbody><tr><td>
|
|
113
|
-
|
|
114
|
-
ParentClass
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
</td><td>
|
|
118
|
-
|
|
119
|
-
P
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
</td><td>
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
</td></tr>
|
|
126
|
-
</tbody></table>
|
|
127
|
-
|
|
128
|
-
**Returns:**
|
|
129
|
-
|
|
130
|
-
{ new (...args: any): { get pluginManager(): [PluginManager](./plugin-tls.pluginmanager.md)<!-- --><any, [IPlugin](./plugin-tls.iplugin.md)<!-- --><any, any>>; use<P\_1 extends Plugin>(plugin: P\_1, ...options: [FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- --><P\_1>): [PluginCreatedReturnType](./plugin-tls.plugincreatedreturntype.md)<!-- --><P\_1> \| void; 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); }; get pluginManager(): [PluginManager](./plugin-tls.pluginmanager.md)<!-- --><typeof [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, Plugin>; \_pluginManager: [PluginManager](./plugin-tls.pluginmanager.md)<!-- --><typeof [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, Plugin>; use<P\_1 extends Plugin>(plugin: P\_1, ...options: [FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- --><P\_1>): void \| ReturnType<P\_1\["used"\]>; } & P
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
## Remarks
|
|
134
|
-
|
|
135
|
-
比 直接使用 PluginHost 提供了完善的类型推导
|
|
136
|
-
|
|
137
|
-
子类需要在构建函数中调用 `this.pluginManager.created(this);`
|
|
138
|
-
|
|
139
|
-
之所以没写在该类中的函数中,是因为 `this.pluginManager.created(this)` 通常会在构建函数执行的最后时才调用; 如果像下面写在该类的构建函数中,然后子类通过 `super()` 来调用,这样就会导致 `this.pluginManager.created(this)` 不是在最后的执行;
|
|
140
|
-
|