plugin-tls 1.1.1 → 2.0.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/extend/extend.d.ts +2 -2
- package/dist/extend/extend.d.ts.map +1 -1
- package/dist/extend/mixin.d.ts.map +1 -1
- package/dist/index.js +1038 -0
- package/dist/index.umd.cjs +1 -0
- package/dist/options-manager/ModeOptions.d.ts.map +1 -1
- package/dist/options-manager/OptionsManager.d.ts.map +1 -1
- package/dist/options-manager/TierOptions.d.ts.map +1 -1
- package/dist/options-manager/defaultOptions.d.ts.map +1 -1
- package/dist/plugin-host/PluginHost.d.ts +53 -15
- package/dist/plugin-host/PluginHost.d.ts.map +1 -1
- package/dist/plugin-host/TierModeOptionsPluginHost.d.ts +45 -16
- package/dist/plugin-host/TierModeOptionsPluginHost.d.ts.map +1 -1
- package/dist/plugin-host/TierOptionsPluginHost.d.ts +43 -9
- package/dist/plugin-host/TierOptionsPluginHost.d.ts.map +1 -1
- package/doc/api/index.md +23 -3
- package/doc/api/plugin-tls.adddefaultoptions.md +49 -4
- package/doc/api/plugin-tls.addinstoptions.md +59 -5
- package/doc/api/plugin-tls.allfunctionapply.md +59 -5
- package/doc/api/plugin-tls.becomepluginhost_extends.md +37 -9
- package/doc/api/plugin-tls.becomepluginhost_proxy.md +31 -3
- package/doc/api/plugin-tls.classextenderprivatemember.md +64 -4
- package/doc/api/plugin-tls.classextenderprivatememberwithinit.md +43 -3
- package/doc/api/plugin-tls.classtype._new_.md +31 -3
- package/doc/api/plugin-tls.classtype.md +21 -3
- package/doc/api/plugin-tls.createcallerofprivatememberofextend.md +31 -3
- package/doc/api/plugin-tls.createextendtarget.md +33 -3
- package/doc/api/plugin-tls.createextendtargetwithinit.md +35 -5
- package/doc/api/plugin-tls.createmixintarget.md +31 -3
- package/doc/api/plugin-tls.createpluginhost.md +81 -9
- package/doc/api/plugin-tls.createpropertysetter.md +45 -4
- package/doc/api/plugin-tls.createtargetextend.md +33 -3
- package/doc/api/plugin-tls.createtargetextendwithinit.md +35 -5
- package/doc/api/plugin-tls.createtargetmixin.md +33 -3
- package/doc/api/plugin-tls.createtiermodeoptionspluginhost.md +81 -11
- package/doc/api/plugin-tls.createtieroptionspluginhost.md +78 -9
- package/doc/api/plugin-tls.defineextend.md +49 -4
- package/doc/api/plugin-tls.defineextendwithinit.md +49 -4
- package/doc/api/plugin-tls.definemixin.md +49 -4
- package/doc/api/plugin-tls.extendtarget.md +49 -4
- package/doc/api/plugin-tls.extendtargetwithinit.md +49 -4
- package/doc/api/plugin-tls.getpropertyvalue.md +45 -4
- package/doc/api/plugin-tls.getpropertyvaluebypath.md +45 -4
- package/doc/api/plugin-tls.gettargetproperties.md +45 -4
- package/doc/api/plugin-tls.idefaultoptionshost.md +41 -3
- package/doc/api/plugin-tls.iplugin.created.md +49 -4
- package/doc/api/plugin-tls.iplugin.destroyed.md +49 -4
- package/doc/api/plugin-tls.iplugin.md +45 -5
- package/doc/api/plugin-tls.iplugin.used.md +49 -4
- package/doc/api/plugin-tls.ipluginhost.md +23 -3
- package/doc/api/plugin-tls.ipluginhost.use.md +45 -4
- package/doc/api/plugin-tls.ipluginhostconstructor.md +23 -3
- package/doc/api/plugin-tls.ipluginhostconstructor.use.md +49 -4
- package/doc/api/plugin-tls.ipluginwithinit.inited.md +49 -4
- package/doc/api/plugin-tls.ipluginwithinit.md +23 -3
- package/doc/api/plugin-tls.itiermodeoptionshost.md +58 -4
- package/doc/api/plugin-tls.itieroptionshost.md +41 -3
- package/doc/api/plugin-tls.md +960 -92
- package/doc/api/plugin-tls.mergeproperties.md +45 -4
- package/doc/api/plugin-tls.mixin_4.md +49 -4
- package/doc/api/plugin-tls.mixintarget.md +49 -4
- package/doc/api/plugin-tls.modeoptions._constructor_.md +31 -3
- package/doc/api/plugin-tls.modeoptions._constructor__1.md +47 -4
- package/doc/api/plugin-tls.modeoptions.getfullmodeoption.md +31 -3
- package/doc/api/plugin-tls.modeoptions.getmodeoption.md +31 -3
- package/doc/api/plugin-tls.modeoptions.hasmode.md +31 -3
- package/doc/api/plugin-tls.modeoptions.md +347 -23
- package/doc/api/plugin-tls.modeoptions.setmodeoption.md +77 -6
- package/doc/api/plugin-tls.parsepropertypath.md +31 -3
- package/doc/api/{plugin-tls.pluginhost.destroy.md → plugin-tls.pluginhost.destroythis.md} +3 -3
- package/doc/api/plugin-tls.pluginhost.md +150 -11
- package/doc/api/plugin-tls.pluginhost.use.md +49 -4
- package/doc/api/plugin-tls.pluginmanager._constructor_.md +33 -3
- package/doc/api/plugin-tls.pluginmanager.created.md +33 -3
- package/doc/api/plugin-tls.pluginmanager.destroyed.md +33 -3
- package/doc/api/plugin-tls.pluginmanager.instuse.md +61 -5
- package/doc/api/plugin-tls.pluginmanager.md +187 -14
- package/doc/api/plugin-tls.pluginmanager.use.md +49 -4
- package/doc/api/plugin-tls.pluginmanagerwithinit.inited.md +33 -3
- package/doc/api/plugin-tls.pluginmanagerwithinit.md +31 -3
- package/doc/api/plugin-tls.privatememberofextend._constructor.md +31 -3
- package/doc/api/plugin-tls.privatememberofextend.md +34 -4
- package/doc/api/plugin-tls.privatememberofextendwithinit._init.md +31 -3
- package/doc/api/plugin-tls.privatememberofextendwithinit.md +23 -3
- package/doc/api/plugin-tls.setpropertyvalue.md +59 -5
- package/doc/api/plugin-tls.setpropertyvaluebypath.md +59 -5
- package/doc/api/plugin-tls.targetextend.md +49 -4
- package/doc/api/plugin-tls.targetextendwithinit.md +49 -4
- package/doc/api/plugin-tls.targetmixin.md +49 -4
- package/doc/api/plugin-tls.tiermodeoptions._constructor_.md +31 -3
- package/doc/api/plugin-tls.tiermodeoptions._constructor__1.md +63 -5
- package/doc/api/plugin-tls.tiermodeoptions.getfullmodeoption.md +31 -3
- package/doc/api/plugin-tls.tiermodeoptions.getmember.md +31 -3
- package/doc/api/plugin-tls.tiermodeoptions.getmodeoptionmanager.md +31 -3
- package/doc/api/plugin-tls.tiermodeoptions.getvalue.md +31 -3
- package/doc/api/plugin-tls.tiermodeoptions.hasmodeontier.md +31 -3
- package/doc/api/plugin-tls.tiermodeoptions.md +227 -17
- package/doc/api/plugin-tls.tiermodeoptionsdecorator.md +45 -4
- package/doc/api/plugin-tls.tiermodeoptionspluginhost._constructor_.md +31 -3
- package/doc/api/plugin-tls.tiermodeoptionspluginhost.md +152 -10
- package/doc/api/plugin-tls.tieroptions._constructor_.md +49 -4
- package/doc/api/plugin-tls.tieroptions.getmember.md +31 -3
- package/doc/api/plugin-tls.tieroptions.getvalue.md +31 -3
- package/doc/api/plugin-tls.tieroptions.md +209 -15
- package/doc/api/plugin-tls.tieroptionsdecorator.md +45 -4
- package/doc/api/plugin-tls.tieroptionspluginhost._constructor_.md +31 -3
- package/doc/api/plugin-tls.tieroptionspluginhost.md +116 -8
- package/package.json +29 -20
- package/dist/plugin-tls.d.ts +0 -1329
- package/dist/plugin-tls.iife.js +0 -1
- package/dist/plugin-tls.mjs +0 -1064
- package/dist/plugin-tls.umd.js +0 -1
- package/dist/tsdoc-metadata.json +0 -11
|
@@ -14,10 +14,55 @@ static use<Plugin extends IPlugin<typeof PluginHost, any>>(plugin: Plugin, ...op
|
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
+
plugin
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</td><td>
|
|
39
|
+
|
|
40
|
+
Plugin
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
插件
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
</td></tr>
|
|
49
|
+
<tr><td>
|
|
50
|
+
|
|
51
|
+
options
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
</td><td>
|
|
55
|
+
|
|
56
|
+
[FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- --><Plugin>
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
</td><td>
|
|
60
|
+
|
|
61
|
+
传递给插件的选项
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
</td></tr>
|
|
65
|
+
</tbody></table>
|
|
21
66
|
|
|
22
67
|
**Returns:**
|
|
23
68
|
|
|
@@ -14,7 +14,37 @@ constructor(host?: HostClassType);
|
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
+
host
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</td><td>
|
|
39
|
+
|
|
40
|
+
HostClassType
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
_(Optional)_ 插件的宿主
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
</td></tr>
|
|
49
|
+
</tbody></table>
|
|
20
50
|
|
|
@@ -14,9 +14,39 @@ created(hostInst: HostInst<HostClassType>): void;
|
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
+
hostInst
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</td><td>
|
|
39
|
+
|
|
40
|
+
[HostInst](./plugin-tls.hostinst.md)<!-- --><HostClassType>
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
插件宿主的新实例
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
</td></tr>
|
|
49
|
+
</tbody></table>
|
|
20
50
|
|
|
21
51
|
**Returns:**
|
|
22
52
|
|
|
@@ -14,9 +14,39 @@ destroyed(hostInst: HostInst<HostClassType>): void;
|
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
+
hostInst
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</td><td>
|
|
39
|
+
|
|
40
|
+
[HostInst](./plugin-tls.hostinst.md)<!-- --><HostClassType>
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
被销毁的插件实例
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
</td></tr>
|
|
49
|
+
</tbody></table>
|
|
20
50
|
|
|
21
51
|
**Returns:**
|
|
22
52
|
|
|
@@ -14,11 +14,67 @@ instUse<P extends Plugin>(hostInst: HostInst<HostClassType>, plugin: P, ...optio
|
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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
|
+
hostInst
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</td><td>
|
|
39
|
+
|
|
40
|
+
[HostInst](./plugin-tls.hostinst.md)<!-- --><HostClassType>
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
插件宿主的新实例
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
</td></tr>
|
|
49
|
+
<tr><td>
|
|
50
|
+
|
|
51
|
+
plugin
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
</td><td>
|
|
55
|
+
|
|
56
|
+
P
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
</td><td>
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
</td></tr>
|
|
63
|
+
<tr><td>
|
|
64
|
+
|
|
65
|
+
options
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
</td><td>
|
|
69
|
+
|
|
70
|
+
[FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- --><P>
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
</td><td>
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
</td></tr>
|
|
77
|
+
</tbody></table>
|
|
22
78
|
|
|
23
79
|
**Returns:**
|
|
24
80
|
|
|
@@ -18,24 +18,197 @@ export declare class PluginManager<HostClassType, Plugin extends IPlugin<HostCla
|
|
|
18
18
|
|
|
19
19
|
## Constructors
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
<table><thead><tr><th>
|
|
22
|
+
|
|
23
|
+
Constructor
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
</th><th>
|
|
27
|
+
|
|
28
|
+
Modifiers
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
</th><th>
|
|
32
|
+
|
|
33
|
+
Description
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
</th></tr></thead>
|
|
37
|
+
<tbody><tr><td>
|
|
38
|
+
|
|
39
|
+
[(constructor)(host)](./plugin-tls.pluginmanager._constructor_.md)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
</td><td>
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
</td><td>
|
|
46
|
+
|
|
47
|
+
Constructs a new instance of the `PluginManager` class
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
</td></tr>
|
|
51
|
+
</tbody></table>
|
|
24
52
|
|
|
25
53
|
## Properties
|
|
26
54
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
55
|
+
<table><thead><tr><th>
|
|
56
|
+
|
|
57
|
+
Property
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
</th><th>
|
|
61
|
+
|
|
62
|
+
Modifiers
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
</th><th>
|
|
66
|
+
|
|
67
|
+
Type
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</th><th>
|
|
71
|
+
|
|
72
|
+
Description
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
</th></tr></thead>
|
|
76
|
+
<tbody><tr><td>
|
|
77
|
+
|
|
78
|
+
[host](./plugin-tls.pluginmanager.host.md)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
</td><td>
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
</td><td>
|
|
85
|
+
|
|
86
|
+
HostClassType
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
</td><td>
|
|
90
|
+
|
|
91
|
+
插件的宿主
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
</td></tr>
|
|
95
|
+
<tr><td>
|
|
96
|
+
|
|
97
|
+
[pluginOptsMap](./plugin-tls.pluginmanager.pluginoptsmap.md)
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
</td><td>
|
|
101
|
+
|
|
102
|
+
`readonly`
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
</td><td>
|
|
106
|
+
|
|
107
|
+
Map<Plugin, any>
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
</td><td>
|
|
111
|
+
|
|
112
|
+
插件与插件选项的映射
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
</td></tr>
|
|
116
|
+
<tr><td>
|
|
117
|
+
|
|
118
|
+
[plugins](./plugin-tls.pluginmanager.plugins.md)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
</td><td>
|
|
122
|
+
|
|
123
|
+
`readonly`
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
</td><td>
|
|
127
|
+
|
|
128
|
+
Plugin\[\]
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
</td><td>
|
|
132
|
+
|
|
133
|
+
注册的插件
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
</td></tr>
|
|
137
|
+
</tbody></table>
|
|
32
138
|
|
|
33
139
|
## Methods
|
|
34
140
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
141
|
+
<table><thead><tr><th>
|
|
142
|
+
|
|
143
|
+
Method
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
</th><th>
|
|
147
|
+
|
|
148
|
+
Modifiers
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
</th><th>
|
|
152
|
+
|
|
153
|
+
Description
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
</th></tr></thead>
|
|
157
|
+
<tbody><tr><td>
|
|
158
|
+
|
|
159
|
+
[created(hostInst)](./plugin-tls.pluginmanager.created.md)
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
</td><td>
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
</td><td>
|
|
166
|
+
|
|
167
|
+
插件宿主创建实例时调用
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
</td></tr>
|
|
171
|
+
<tr><td>
|
|
172
|
+
|
|
173
|
+
[destroyed(hostInst)](./plugin-tls.pluginmanager.destroyed.md)
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
</td><td>
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
</td><td>
|
|
180
|
+
|
|
181
|
+
插件宿主被销毁时调用
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
</td></tr>
|
|
185
|
+
<tr><td>
|
|
186
|
+
|
|
187
|
+
[instUse(hostInst, plugin, options)](./plugin-tls.pluginmanager.instuse.md)
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
</td><td>
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
</td><td>
|
|
194
|
+
|
|
195
|
+
插件宿主实例的注册插件的方法
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
</td></tr>
|
|
199
|
+
<tr><td>
|
|
200
|
+
|
|
201
|
+
[use(plugin, options)](./plugin-tls.pluginmanager.use.md)
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
</td><td>
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
</td><td>
|
|
208
|
+
|
|
209
|
+
使用插件、注册插件
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
</td></tr>
|
|
213
|
+
</tbody></table>
|
|
41
214
|
|
|
@@ -14,10 +14,55 @@ use<P extends Plugin>(plugin: P, ...options: FormatUsePluginParameters<P>): Plug
|
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
+
plugin
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</td><td>
|
|
39
|
+
|
|
40
|
+
P
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
插件
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
</td></tr>
|
|
49
|
+
<tr><td>
|
|
50
|
+
|
|
51
|
+
options
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
</td><td>
|
|
55
|
+
|
|
56
|
+
[FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- --><P>
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
</td><td>
|
|
60
|
+
|
|
61
|
+
传递给插件的选项
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
</td></tr>
|
|
65
|
+
</tbody></table>
|
|
21
66
|
|
|
22
67
|
**Returns:**
|
|
23
68
|
|
|
@@ -14,9 +14,39 @@ inited(hostInst: HostInst<HostClassType>): void;
|
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
+
hostInst
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</td><td>
|
|
39
|
+
|
|
40
|
+
[HostInst](./plugin-tls.hostinst.md)<!-- --><HostClassType>
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
插件宿主的新实例
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
</td></tr>
|
|
49
|
+
</tbody></table>
|
|
20
50
|
|
|
21
51
|
**Returns:**
|
|
22
52
|
|
|
@@ -19,7 +19,35 @@ export declare class PluginManagerWithInit<HostClassType, Plugin extends IPlugin
|
|
|
19
19
|
|
|
20
20
|
## Methods
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
<table><thead><tr><th>
|
|
23
|
+
|
|
24
|
+
Method
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</th><th>
|
|
28
|
+
|
|
29
|
+
Modifiers
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
</th><th>
|
|
33
|
+
|
|
34
|
+
Description
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
</th></tr></thead>
|
|
38
|
+
<tbody><tr><td>
|
|
39
|
+
|
|
40
|
+
[inited(hostInst)](./plugin-tls.pluginmanagerwithinit.inited.md)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td><td>
|
|
47
|
+
|
|
48
|
+
插件宿主创建实例时调用
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
</td></tr>
|
|
52
|
+
</tbody></table>
|
|
25
53
|
|
|
@@ -14,9 +14,37 @@ _constructor?(...args: (TargetType extends new (...args: infer A) => any ? A : n
|
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
+
args
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</td><td>
|
|
39
|
+
|
|
40
|
+
(TargetType extends new (...args: infer A) => any ? A : never)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td></tr>
|
|
47
|
+
</tbody></table>
|
|
20
48
|
|
|
21
49
|
**Returns:**
|
|
22
50
|
|
|
@@ -14,8 +14,38 @@ export interface PrivateMemberOfExtend<TargetType extends new (...args: any) =>
|
|
|
14
14
|
|
|
15
15
|
## Methods
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
+
[\_constructor(args)?](./plugin-tls.privatememberofextend._constructor.md)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
</td><td>
|
|
34
|
+
|
|
35
|
+
_(Optional)_ 扩展类中用于定义在创建实例时的初始化的方法
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</td></tr>
|
|
39
|
+
<tr><td>
|
|
40
|
+
|
|
41
|
+
[\_destroy()?](./plugin-tls.privatememberofextend._destroy.md)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
</td><td>
|
|
45
|
+
|
|
46
|
+
_(Optional)_ 扩展类中用于定义在实例销毁时触发的销毁方法
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
</td></tr>
|
|
50
|
+
</tbody></table>
|
|
21
51
|
|