plugin-tls 0.0.0 → 1.1.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/README.md +5 -5
- package/dist/extend/extend.d.ts +222 -0
- package/dist/extend/extend.d.ts.map +1 -0
- package/dist/extend/mixin.d.ts +105 -0
- package/dist/extend/mixin.d.ts.map +1 -0
- package/dist/index.d.ts +14 -4
- package/dist/index.d.ts.map +1 -0
- package/dist/options-manager/ModeOptions.d.ts +88 -0
- package/dist/options-manager/ModeOptions.d.ts.map +1 -0
- package/dist/options-manager/OptionsManager.d.ts +105 -0
- package/dist/options-manager/OptionsManager.d.ts.map +1 -0
- package/dist/options-manager/TierModeOptions.d.ts +69 -0
- package/dist/options-manager/TierModeOptions.d.ts.map +1 -0
- package/dist/options-manager/TierOptions.d.ts +48 -0
- package/dist/options-manager/TierOptions.d.ts.map +1 -0
- package/dist/{defaultOptions.d.ts → options-manager/defaultOptions.d.ts} +2 -1
- package/dist/options-manager/defaultOptions.d.ts.map +1 -0
- package/dist/options-manager/tools.d.ts +35 -0
- package/dist/options-manager/tools.d.ts.map +1 -0
- package/dist/plugin-host/PluginHost.d.ts +184 -0
- package/dist/plugin-host/PluginHost.d.ts.map +1 -0
- package/dist/plugin-host/TierModeOptionsPluginHost.d.ts +102 -0
- package/dist/plugin-host/TierModeOptionsPluginHost.d.ts.map +1 -0
- package/dist/plugin-host/TierOptionsPluginHost.d.ts +83 -0
- package/dist/plugin-host/TierOptionsPluginHost.d.ts.map +1 -0
- package/dist/plugin-manager/PluginManager.d.ts +119 -0
- package/dist/plugin-manager/PluginManager.d.ts.map +1 -0
- package/dist/plugin-manager/PluginManagerWithInit.d.ts +36 -0
- package/dist/plugin-manager/PluginManagerWithInit.d.ts.map +1 -0
- package/dist/plugin-tls.d.ts +1329 -0
- package/dist/plugin-tls.iife.js +1 -0
- package/dist/plugin-tls.mjs +1064 -0
- package/dist/plugin-tls.umd.js +1 -1
- package/dist/properties.d.ts +30 -0
- package/dist/properties.d.ts.map +1 -0
- package/dist/tsdoc-metadata.json +11 -0
- package/doc/{plugin-tls.adddefaultoptions.md → api/plugin-tls.adddefaultoptions.md} +3 -3
- package/doc/{plugin-tls.addinstoptions.md → api/plugin-tls.addinstoptions.md} +2 -2
- package/doc/api/plugin-tls.allfunctionapply.md +26 -0
- package/doc/api/plugin-tls.becomepluginhost.md +15 -0
- package/doc/api/plugin-tls.becomepluginhost_extends.md +38 -0
- package/doc/api/plugin-tls.becomepluginhost_proxy.md +29 -0
- package/doc/api/plugin-tls.becometiermodeoptionshost.md +15 -0
- package/doc/api/plugin-tls.becometieroptionshost.md +15 -0
- package/doc/api/plugin-tls.classextender.md +15 -0
- package/doc/api/plugin-tls.classextenderprivatemember._constructors.md +13 -0
- package/doc/api/plugin-tls.classextenderprivatemember._destroys.md +13 -0
- package/doc/api/plugin-tls.classextenderprivatemember.md +21 -0
- package/doc/api/plugin-tls.classextenderprivatememberwithinit._inits.md +13 -0
- package/doc/api/plugin-tls.classextenderprivatememberwithinit.md +21 -0
- package/doc/api/plugin-tls.classextenderwithinit.md +15 -0
- package/doc/api/plugin-tls.classtype._new_.md +22 -0
- package/doc/api/plugin-tls.classtype.md +20 -0
- package/doc/api/plugin-tls.commonmodename.md +18 -0
- package/doc/api/plugin-tls.createcallerofprivatememberofextend.md +30 -0
- package/doc/api/plugin-tls.createdefinemixin.md +23 -0
- package/doc/api/plugin-tls.createextendtarget.md +30 -0
- package/doc/api/plugin-tls.createextendtargetwithinit.md +30 -0
- package/doc/api/plugin-tls.createmixintarget.md +30 -0
- package/doc/api/plugin-tls.createpluginhost.md +35 -0
- package/doc/api/plugin-tls.createpropertysetter.md +30 -0
- package/doc/api/plugin-tls.createtargetextend.md +30 -0
- package/doc/api/plugin-tls.createtargetextendwithinit.md +30 -0
- package/doc/api/plugin-tls.createtargetmixin.md +30 -0
- package/doc/api/plugin-tls.createtiermodeoptionspluginhost.md +32 -0
- package/doc/api/plugin-tls.createtieroptionspluginhost.md +30 -0
- package/doc/api/plugin-tls.defineextend.md +35 -0
- package/doc/api/plugin-tls.defineextendwithinit.md +35 -0
- package/doc/api/plugin-tls.definemixin.md +31 -0
- package/doc/api/plugin-tls.extendtarget.md +31 -0
- package/doc/api/plugin-tls.extendtargetwithinit.md +31 -0
- package/doc/api/plugin-tls.formatuseparameters.md +13 -0
- package/doc/api/plugin-tls.formatusepluginparameters.md +15 -0
- package/doc/api/plugin-tls.getnormalizepluginoptions.md +15 -0
- package/doc/api/plugin-tls.getpluginoptions.md +15 -0
- package/doc/api/plugin-tls.getpropertyvalue.md +26 -0
- package/doc/api/plugin-tls.getpropertyvaluebypath.md +26 -0
- package/doc/api/plugin-tls.gettargetproperties.md +26 -0
- package/doc/{plugin-tls.hostinst.md → api/plugin-tls.hostinst.md} +2 -2
- package/doc/{plugin-tls.idefaultoptionshost.defaultoptions.md → api/plugin-tls.idefaultoptionshost.defaultoptions.md} +1 -1
- package/doc/{plugin-tls.idefaultoptionshost.md → api/plugin-tls.idefaultoptionshost.md} +1 -1
- package/doc/{plugin-tls.iidefaultoptionshostconstructor.md → api/plugin-tls.iidefaultoptionshostconstructor.md} +1 -1
- package/doc/{plugin-tls.iplugin.created.md → api/plugin-tls.iplugin.created.md} +4 -4
- package/doc/api/plugin-tls.iplugin.destroyed.md +25 -0
- package/doc/{plugin-tls.iplugin.md → api/plugin-tls.iplugin.md} +4 -3
- package/doc/{plugin-tls.iplugin.used.md → api/plugin-tls.iplugin.used.md} +4 -4
- package/doc/{plugin-tls.ipluginhost.md → api/plugin-tls.ipluginhost.md} +2 -2
- package/doc/{plugin-tls.ipluginhost.use.md → api/plugin-tls.ipluginhost.use.md} +6 -6
- package/doc/{plugin-tls.ipluginhostconstructor.md → api/plugin-tls.ipluginhostconstructor.md} +2 -2
- package/doc/{plugin-tls.ipluginhostconstructor.use.md → api/plugin-tls.ipluginhostconstructor.use.md} +6 -6
- package/doc/api/plugin-tls.ipluginwithinit.inited.md +25 -0
- package/doc/api/plugin-tls.ipluginwithinit.md +21 -0
- package/doc/api/plugin-tls.itiermodeoptionshost.md +21 -0
- package/doc/api/plugin-tls.itiermodeoptionshost.mode.md +11 -0
- package/doc/api/plugin-tls.itiermodeoptionshost.modeoptions.md +11 -0
- package/doc/api/plugin-tls.itiermodeoptionshostconstructor.md +13 -0
- package/doc/api/plugin-tls.itiermodeoptionspluginhost.md +15 -0
- package/doc/api/plugin-tls.itiermodeoptionspluginhostconstructor.md +15 -0
- package/doc/api/plugin-tls.itieroptionshost.defaultoptions.md +11 -0
- package/doc/api/plugin-tls.itieroptionshost.md +20 -0
- package/doc/api/plugin-tls.itieroptionshostconstructor.md +13 -0
- package/doc/api/plugin-tls.itieroptionspluginhost.md +15 -0
- package/doc/api/plugin-tls.itieroptionspluginhostconstructor.md +15 -0
- package/doc/api/plugin-tls.md +121 -0
- package/doc/api/plugin-tls.mergeproperties.md +25 -0
- package/doc/api/plugin-tls.mixin_4.md +33 -0
- package/doc/api/plugin-tls.mixintarget.md +31 -0
- package/doc/api/plugin-tls.modeoptions._constructor_.md +20 -0
- package/doc/api/plugin-tls.modeoptions._constructor__1.md +21 -0
- package/doc/api/plugin-tls.modeoptions._mode.md +11 -0
- package/doc/api/plugin-tls.modeoptions._modenames.md +11 -0
- package/doc/api/plugin-tls.modeoptions._plainfulloption.md +11 -0
- package/doc/api/plugin-tls.modeoptions.getfullmodeoption.md +29 -0
- package/doc/api/plugin-tls.modeoptions.getmodenames.md +18 -0
- package/doc/api/plugin-tls.modeoptions.getmodeoption.md +29 -0
- package/doc/api/plugin-tls.modeoptions.hasmode.md +25 -0
- package/doc/api/plugin-tls.modeoptions.md +57 -0
- package/doc/api/plugin-tls.modeoptions.mode.md +15 -0
- package/doc/api/plugin-tls.modeoptions.modenames.md +13 -0
- package/doc/api/plugin-tls.modeoptions.modes.md +13 -0
- package/doc/api/plugin-tls.modeoptions.option.md +13 -0
- package/doc/api/plugin-tls.modeoptions.optionmanager.md +13 -0
- package/doc/api/plugin-tls.modeoptions.plainfulloption.md +11 -0
- package/doc/api/plugin-tls.modeoptions.setmodeoption.md +27 -0
- package/doc/api/plugin-tls.modeoptions.updatefulloption.md +17 -0
- package/doc/api/plugin-tls.normalizepluginoptions.md +18 -0
- package/doc/api/plugin-tls.parsepropertypath.md +25 -0
- package/doc/{plugin-tls.plugincreatedreturntype.md → api/plugin-tls.plugincreatedreturntype.md} +3 -3
- package/doc/{plugin-tls.pluginhost._pluginmanager.md → api/plugin-tls.pluginhost._pluginmanager.md} +2 -2
- package/doc/api/plugin-tls.pluginhost.destroy.md +18 -0
- package/doc/api/plugin-tls.pluginhost.md +38 -0
- package/doc/{plugin-tls.pluginhost.pluginmanager.md → api/plugin-tls.pluginhost.pluginmanager.md} +2 -2
- package/doc/{plugin-tls.pluginhost.use.md → api/plugin-tls.pluginhost.use.md} +5 -5
- package/doc/api/plugin-tls.pluginmanager._constructor_.md +20 -0
- package/doc/{plugin-tls.pluginmanager.created.md → api/plugin-tls.pluginmanager.created.md} +4 -4
- package/doc/api/plugin-tls.pluginmanager.destroyed.md +28 -0
- package/doc/{plugin-tls.pluginmanager.host.md → api/plugin-tls.pluginmanager.host.md} +2 -2
- package/doc/api/plugin-tls.pluginmanager.instuse.md +30 -0
- package/doc/{plugin-tls.pluginmanager.md → api/plugin-tls.pluginmanager.md} +12 -5
- package/doc/{plugin-tls.pluginmanager.pluginoptsmap.md → api/plugin-tls.pluginmanager.pluginoptsmap.md} +2 -2
- package/doc/{plugin-tls.pluginmanager.plugins.md → api/plugin-tls.pluginmanager.plugins.md} +2 -2
- package/doc/{plugin-tls.pluginmanager.use.md → api/plugin-tls.pluginmanager.use.md} +6 -6
- package/doc/api/plugin-tls.pluginmanagerwithinit.inited.md +28 -0
- package/doc/api/plugin-tls.pluginmanagerwithinit.md +25 -0
- package/doc/{plugin-tls.pluginusereturntype.md → api/plugin-tls.pluginusereturntype.md} +3 -3
- package/doc/api/plugin-tls.privatememberofextend._constructor.md +32 -0
- package/doc/api/plugin-tls.privatememberofextend._destroy.md +25 -0
- package/doc/api/plugin-tls.privatememberofextend.md +21 -0
- package/doc/api/plugin-tls.privatememberofextendwithinit._init.md +28 -0
- package/doc/api/plugin-tls.privatememberofextendwithinit.md +21 -0
- package/doc/api/plugin-tls.replaceconstructorparameters.md +13 -0
- package/doc/api/plugin-tls.replaceconstructorreturn.md +13 -0
- package/doc/api/plugin-tls.setpropertyvalue.md +27 -0
- package/doc/api/plugin-tls.setpropertyvaluebypath.md +27 -0
- package/doc/api/plugin-tls.targetextend.md +31 -0
- package/doc/api/plugin-tls.targetextendwithinit.md +31 -0
- package/doc/api/plugin-tls.targetmixin.md +31 -0
- package/doc/api/plugin-tls.tiermodeoptions._constructor_.md +20 -0
- package/doc/api/plugin-tls.tiermodeoptions._constructor__1.md +22 -0
- package/doc/api/plugin-tls.tiermodeoptions._extends.md +11 -0
- package/doc/api/plugin-tls.tiermodeoptions.extends.md +15 -0
- package/doc/api/plugin-tls.tiermodeoptions.getfullmodeoption.md +29 -0
- package/doc/api/plugin-tls.tiermodeoptions.getmember.md +25 -0
- package/doc/api/plugin-tls.tiermodeoptions.getmodenames.md +18 -0
- package/doc/api/plugin-tls.tiermodeoptions.getmodeoptionmanager.md +25 -0
- package/doc/api/plugin-tls.tiermodeoptions.getvalue.md +25 -0
- package/doc/api/plugin-tls.tiermodeoptions.hasmodeontier.md +25 -0
- package/doc/api/plugin-tls.tiermodeoptions.md +45 -0
- package/doc/api/plugin-tls.tiermodeoptions.optionmanager.md +13 -0
- package/doc/api/plugin-tls.tiermodeoptionsdecorator.md +30 -0
- package/doc/api/plugin-tls.tiermodeoptionspluginhost._constructor_.md +20 -0
- package/doc/api/plugin-tls.tiermodeoptionspluginhost._modeoptions.md +11 -0
- package/doc/api/plugin-tls.tiermodeoptionspluginhost.md +37 -0
- package/doc/api/plugin-tls.tiermodeoptionspluginhost.mode.md +13 -0
- package/doc/api/plugin-tls.tiermodeoptionspluginhost.modeoptions.md +13 -0
- package/doc/api/plugin-tls.tiermodeoptionspluginhost.options.md +11 -0
- package/doc/api/plugin-tls.tieroptions._constructor_.md +21 -0
- package/doc/api/plugin-tls.tieroptions._extends.md +11 -0
- package/doc/api/plugin-tls.tieroptions._plainfulloption.md +11 -0
- package/doc/api/plugin-tls.tieroptions.extends.md +15 -0
- package/doc/api/plugin-tls.tieroptions.getmember.md +25 -0
- package/doc/api/plugin-tls.tieroptions.getvalue.md +25 -0
- package/doc/api/plugin-tls.tieroptions.md +37 -0
- package/doc/api/plugin-tls.tieroptions.option.md +13 -0
- package/doc/api/plugin-tls.tieroptions.plainfulloption.md +18 -0
- package/doc/api/plugin-tls.tieroptions.updatefulloption.md +17 -0
- package/doc/api/plugin-tls.tieroptionsdecorator.md +30 -0
- package/doc/api/plugin-tls.tieroptionspluginhost._constructor_.md +20 -0
- package/doc/api/plugin-tls.tieroptionspluginhost._defaultoptions.md +11 -0
- package/doc/api/plugin-tls.tieroptionspluginhost.defaultoptions.md +13 -0
- package/doc/api/plugin-tls.tieroptionspluginhost.md +35 -0
- package/package.json +23 -15
- package/dist/OptionsPluginHost.d.ts +0 -49
- package/dist/PluginHost.d.ts +0 -96
- package/dist/PluginManager.d.ts +0 -76
- package/dist/plugin-tls.es.js +0 -170
- package/doc/plugin-tls.createoptionspluginhost.md +0 -29
- package/doc/plugin-tls.createpluginhost.md +0 -30
- package/doc/plugin-tls.ioptionspluginhost.defaultoptions.md +0 -11
- package/doc/plugin-tls.ioptionspluginhost.md +0 -21
- package/doc/plugin-tls.ioptionspluginhostconstructor.md +0 -15
- package/doc/plugin-tls.md +0 -53
- package/doc/plugin-tls.optionspluginhost._defaultoptions.md +0 -11
- package/doc/plugin-tls.optionspluginhost.defaultoptions.md +0 -13
- package/doc/plugin-tls.optionspluginhost.md +0 -21
- package/doc/plugin-tls.pluginhost._constructor_.md +0 -13
- package/doc/plugin-tls.pluginhost.md +0 -25
- package/doc/plugin-tls.pluginmanager.instuse.md +0 -30
- package/doc/plugin-tls.pluginoptions.md +0 -11
- /package/doc/{index.md → api/index.md} +0 -0
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
插件宿主的接口
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
export interface IPluginHost<
|
|
12
|
+
export interface IPluginHost<HostClassType extends IPluginHostConstructor<any, Plugin>, Plugin extends IPlugin<HostClassType, any> = IPlugin<HostClassType, any>>
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Methods
|
|
@@ -6,21 +6,21 @@
|
|
|
6
6
|
|
|
7
7
|
实例的注册插件的方法
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
use<
|
|
12
|
+
use<P extends Plugin>(plugin: P, options: GetNormalizePluginOptions<P>): PluginCreatedReturnType<P> | void;
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
16
16
|
|
|
17
17
|
| Parameter | Type | Description |
|
|
18
18
|
| --- | --- | --- |
|
|
19
|
-
| plugin |
|
|
20
|
-
| options |
|
|
19
|
+
| plugin | P | |
|
|
20
|
+
| options | [GetNormalizePluginOptions](./plugin-tls.getnormalizepluginoptions.md)<!-- --><P> | |
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
**Returns:**
|
|
23
23
|
|
|
24
|
-
[PluginCreatedReturnType](./plugin-tls.plugincreatedreturntype.md)<!-- --><
|
|
24
|
+
[PluginCreatedReturnType](./plugin-tls.plugincreatedreturntype.md)<!-- --><P> \| void
|
|
25
25
|
|
|
26
26
|
|
package/doc/{plugin-tls.ipluginhostconstructor.md → api/plugin-tls.ipluginhostconstructor.md}
RENAMED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
插件宿主构造函数的接口
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
export interface IPluginHostConstructor<
|
|
12
|
+
export interface IPluginHostConstructor<HostClassType, Plugin extends IPlugin<HostClassType, any> = IPlugin<HostClassType, any>>
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Methods
|
|
@@ -6,20 +6,20 @@
|
|
|
6
6
|
|
|
7
7
|
使用插件、注册插件
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
use<
|
|
12
|
+
use<P extends Plugin>(plugin: P, options: GetNormalizePluginOptions<P>): PluginUseReturnType<P> | void;
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
16
16
|
|
|
17
17
|
| Parameter | Type | Description |
|
|
18
18
|
| --- | --- | --- |
|
|
19
|
-
| plugin |
|
|
20
|
-
| options |
|
|
19
|
+
| plugin | P | 插件 |
|
|
20
|
+
| options | [GetNormalizePluginOptions](./plugin-tls.getnormalizepluginoptions.md)<!-- --><P> | 传递给插件的选项 |
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
**Returns:**
|
|
23
23
|
|
|
24
|
-
[PluginUseReturnType](./plugin-tls.pluginusereturntype.md)<!-- --><
|
|
24
|
+
[PluginUseReturnType](./plugin-tls.pluginusereturntype.md)<!-- --><P> \| void
|
|
25
25
|
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [IPluginWithInit](./plugin-tls.ipluginwithinit.md) > [inited](./plugin-tls.ipluginwithinit.inited.md)
|
|
4
|
+
|
|
5
|
+
## IPluginWithInit.inited() method
|
|
6
|
+
|
|
7
|
+
当宿主实例被初始化时调用
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
inited?(host: HostInst<HOST>, ...options: FormatUseParameters<Options>): any;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| host | [HostInst](./plugin-tls.hostinst.md)<!-- --><HOST> | 新建的宿主实例 |
|
|
20
|
+
| options | [FormatUseParameters](./plugin-tls.formatuseparameters.md)<!-- --><Options> | 注册插件时的选项 |
|
|
21
|
+
|
|
22
|
+
**Returns:**
|
|
23
|
+
|
|
24
|
+
any
|
|
25
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [IPluginWithInit](./plugin-tls.ipluginwithinit.md)
|
|
4
|
+
|
|
5
|
+
## IPluginWithInit interface
|
|
6
|
+
|
|
7
|
+
插件的接口
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export interface IPluginWithInit<HOST, Options = void> extends IPlugin<HOST, Options>
|
|
13
|
+
```
|
|
14
|
+
**Extends:** [IPlugin](./plugin-tls.iplugin.md)<!-- --><HOST, Options>
|
|
15
|
+
|
|
16
|
+
## Methods
|
|
17
|
+
|
|
18
|
+
| Method | Description |
|
|
19
|
+
| --- | --- |
|
|
20
|
+
| [inited(host, options)?](./plugin-tls.ipluginwithinit.inited.md) | _(Optional)_ 当宿主实例被初始化时调用 |
|
|
21
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [ITierModeOptionsHost](./plugin-tls.itiermodeoptionshost.md)
|
|
4
|
+
|
|
5
|
+
## ITierModeOptionsHost interface
|
|
6
|
+
|
|
7
|
+
选项宿主接口
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export interface ITierModeOptionsHost<Options extends {} = any, Mode extends string | number = string>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
| Property | Modifiers | Type | Description |
|
|
18
|
+
| --- | --- | --- | --- |
|
|
19
|
+
| [mode](./plugin-tls.itiermodeoptionshost.mode.md) | | Mode | |
|
|
20
|
+
| [modeOptions](./plugin-tls.itiermodeoptionshost.modeoptions.md) | <code>readonly</code> | [TierModeOptions](./plugin-tls.tiermodeoptions.md)<!-- --><Mode, Options> | |
|
|
21
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [ITierModeOptionsHost](./plugin-tls.itiermodeoptionshost.md) > [mode](./plugin-tls.itiermodeoptionshost.mode.md)
|
|
4
|
+
|
|
5
|
+
## ITierModeOptionsHost.mode property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
mode: Mode;
|
|
11
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [ITierModeOptionsHost](./plugin-tls.itiermodeoptionshost.md) > [modeOptions](./plugin-tls.itiermodeoptionshost.modeoptions.md)
|
|
4
|
+
|
|
5
|
+
## ITierModeOptionsHost.modeOptions property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
readonly modeOptions: TierModeOptions<Mode, Options>;
|
|
11
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [ITierModeOptionsHostConstructor](./plugin-tls.itiermodeoptionshostconstructor.md)
|
|
4
|
+
|
|
5
|
+
## ITierModeOptionsHostConstructor interface
|
|
6
|
+
|
|
7
|
+
选项宿主的构建函数接口
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export interface ITierModeOptionsHostConstructor<Options extends {} = any, Mode extends string | number = string>
|
|
13
|
+
```
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [ITierModeOptionsPluginHost](./plugin-tls.itiermodeoptionspluginhost.md)
|
|
4
|
+
|
|
5
|
+
## ITierModeOptionsPluginHost type
|
|
6
|
+
|
|
7
|
+
选项插件宿主接口
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export type ITierModeOptionsPluginHost<HostClassType extends ITierModeOptionsPluginHostConstructor<any>, Options extends {} = any, Mode extends string | number = string> = IPluginHost<HostClassType> & ITierModeOptionsHost<Options, Mode>;
|
|
13
|
+
```
|
|
14
|
+
**References:** [ITierModeOptionsPluginHostConstructor](./plugin-tls.itiermodeoptionspluginhostconstructor.md)<!-- -->, [IPluginHost](./plugin-tls.ipluginhost.md)<!-- -->, [ITierModeOptionsHost](./plugin-tls.itiermodeoptionshost.md)
|
|
15
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [ITierModeOptionsPluginHostConstructor](./plugin-tls.itiermodeoptionspluginhostconstructor.md)
|
|
4
|
+
|
|
5
|
+
## ITierModeOptionsPluginHostConstructor type
|
|
6
|
+
|
|
7
|
+
选项插件宿主的构建函数接口
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export type ITierModeOptionsPluginHostConstructor<HostClassType, Options extends {} = any, Mode extends string | number = string> = IPluginHostConstructor<HostClassType> & ITierModeOptionsHostConstructor<Options, Mode>;
|
|
13
|
+
```
|
|
14
|
+
**References:** [IPluginHostConstructor](./plugin-tls.ipluginhostconstructor.md)<!-- -->, [ITierModeOptionsHostConstructor](./plugin-tls.itiermodeoptionshostconstructor.md)
|
|
15
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [ITierOptionsHost](./plugin-tls.itieroptionshost.md) > [defaultOptions](./plugin-tls.itieroptionshost.defaultoptions.md)
|
|
4
|
+
|
|
5
|
+
## ITierOptionsHost.defaultOptions property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
readonly defaultOptions: TierOptions<Options>;
|
|
11
|
+
```
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [ITierOptionsHost](./plugin-tls.itieroptionshost.md)
|
|
4
|
+
|
|
5
|
+
## ITierOptionsHost interface
|
|
6
|
+
|
|
7
|
+
选项插件宿主接口
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export interface ITierOptionsHost<Options extends {} = any>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
| Property | Modifiers | Type | Description |
|
|
18
|
+
| --- | --- | --- | --- |
|
|
19
|
+
| [defaultOptions](./plugin-tls.itieroptionshost.defaultoptions.md) | <code>readonly</code> | [TierOptions](./plugin-tls.tieroptions.md)<!-- --><Options> | |
|
|
20
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [ITierOptionsHostConstructor](./plugin-tls.itieroptionshostconstructor.md)
|
|
4
|
+
|
|
5
|
+
## ITierOptionsHostConstructor interface
|
|
6
|
+
|
|
7
|
+
选项插件宿主的构建函数接口
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export interface ITierOptionsHostConstructor<Options extends {} = any>
|
|
13
|
+
```
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [ITierOptionsPluginHost](./plugin-tls.itieroptionspluginhost.md)
|
|
4
|
+
|
|
5
|
+
## ITierOptionsPluginHost type
|
|
6
|
+
|
|
7
|
+
选项插件宿主接口
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export type ITierOptionsPluginHost<HostClassType extends ITierOptionsPluginHostConstructor<any>, Options extends {} = any> = IPluginHost<HostClassType> & ITierOptionsHost<Options>;
|
|
13
|
+
```
|
|
14
|
+
**References:** [ITierOptionsPluginHostConstructor](./plugin-tls.itieroptionspluginhostconstructor.md)<!-- -->, [IPluginHost](./plugin-tls.ipluginhost.md)<!-- -->, [ITierOptionsHost](./plugin-tls.itieroptionshost.md)
|
|
15
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [ITierOptionsPluginHostConstructor](./plugin-tls.itieroptionspluginhostconstructor.md)
|
|
4
|
+
|
|
5
|
+
## ITierOptionsPluginHostConstructor type
|
|
6
|
+
|
|
7
|
+
选项插件宿主的构建函数接口
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export type ITierOptionsPluginHostConstructor<HostClassType, Options extends {} = any> = IPluginHostConstructor<HostClassType> & ITierOptionsHostConstructor<Options>;
|
|
13
|
+
```
|
|
14
|
+
**References:** [IPluginHostConstructor](./plugin-tls.ipluginhostconstructor.md)<!-- -->, [ITierOptionsHostConstructor](./plugin-tls.itieroptionshostconstructor.md)
|
|
15
|
+
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [plugin-tls](./plugin-tls.md)
|
|
4
|
+
|
|
5
|
+
## plugin-tls package
|
|
6
|
+
|
|
7
|
+
插件系统
|
|
8
|
+
|
|
9
|
+
## Remarks
|
|
10
|
+
|
|
11
|
+
主要负责 SDK 的插件机制的实现 插件系统应该具备以下功能: - 注册插件 - 可扩展类的静态级功能 - 可扩展类的实例级功能 - 可自定义暴露的功能 - 可拥有私有自身的API
|
|
12
|
+
|
|
13
|
+
额外的也提供了其它的功能 - 全局选项 - 实例选项
|
|
14
|
+
|
|
15
|
+
## Classes
|
|
16
|
+
|
|
17
|
+
| Class | Description |
|
|
18
|
+
| --- | --- |
|
|
19
|
+
| [ModeOptions](./plugin-tls.modeoptions.md) | 模式选项 |
|
|
20
|
+
| [PluginHost](./plugin-tls.pluginhost.md) | 插件的宿主 |
|
|
21
|
+
| [PluginManager](./plugin-tls.pluginmanager.md) | 插件管理者 |
|
|
22
|
+
| [PluginManagerWithInit](./plugin-tls.pluginmanagerwithinit.md) | 插件管理者 |
|
|
23
|
+
| [TierModeOptions](./plugin-tls.tiermodeoptions.md) | 层级模式选项 |
|
|
24
|
+
| [TierModeOptionsPluginHost](./plugin-tls.tiermodeoptionspluginhost.md) | 层级模式选项插件的宿主 |
|
|
25
|
+
| [TierOptions](./plugin-tls.tieroptions.md) | |
|
|
26
|
+
| [TierOptionsPluginHost](./plugin-tls.tieroptionspluginhost.md) | 层级选项插件的宿主 |
|
|
27
|
+
|
|
28
|
+
## Functions
|
|
29
|
+
|
|
30
|
+
| Function | Description |
|
|
31
|
+
| --- | --- |
|
|
32
|
+
| [addDefaultOptions(options, name)](./plugin-tls.adddefaultoptions.md) | 创建增加带有选项机制的装饰器 |
|
|
33
|
+
| [addInstOptions(target, propertyKey, descriptor)](./plugin-tls.addinstoptions.md) | 创建增加带有选项机制的装饰器 |
|
|
34
|
+
| [allFunctionApply(funArr, thisArg, args)](./plugin-tls.allfunctionapply.md) | 对一组函数批量调用 apply |
|
|
35
|
+
| [becomePluginHost\_Extends(target)](./plugin-tls.becomepluginhost_extends.md) | 插件缩主类的装饰器(继承版) |
|
|
36
|
+
| [becomePluginHost\_Proxy(target)](./plugin-tls.becomepluginhost_proxy.md) | 变成插件宿主 |
|
|
37
|
+
| [becomePluginHost(target)](./plugin-tls.becomepluginhost.md) | 变成插件宿主 |
|
|
38
|
+
| [becomeTierModeOptionsHost(host, mode, options)](./plugin-tls.becometiermodeoptionshost.md) | 使 host 变成 层级选项的宿主类型 |
|
|
39
|
+
| [becomeTierOptionsHost(host, option)](./plugin-tls.becometieroptionshost.md) | 使 host 变成 层级选项的宿主类型 |
|
|
40
|
+
| [createCallerOfPrivateMemberOfExtend(cla)](./plugin-tls.createcallerofprivatememberofextend.md) | 创建扩展的私有方法的调用者 |
|
|
41
|
+
| [createDefineMixin()](./plugin-tls.createdefinemixin.md) | 创建定义混合的类型便利函数 |
|
|
42
|
+
| [createExtendTarget(cla)](./plugin-tls.createextendtarget.md) | 创建用于扩展目标工具函数 |
|
|
43
|
+
| [createExtendTargetWithInit(cla)](./plugin-tls.createextendtargetwithinit.md) | 创建用于扩展目标工具函数 |
|
|
44
|
+
| [createMixinTarget(target)](./plugin-tls.createmixintarget.md) | 创建用于混合目标工具函数 |
|
|
45
|
+
| [createPluginHost()](./plugin-tls.createpluginhost.md) | 创建插件的缩主类 |
|
|
46
|
+
| [createPropertySetter(target, props)](./plugin-tls.createpropertysetter.md) | 创建属性设置器 |
|
|
47
|
+
| [createTargetExtend(cla)](./plugin-tls.createtargetextend.md) | 创建用于扩展目标的便捷函数 |
|
|
48
|
+
| [createTargetExtendWithInit(cla)](./plugin-tls.createtargetextendwithinit.md) | 创建用于扩展目标的便捷函数 |
|
|
49
|
+
| [createTargetMixin(target)](./plugin-tls.createtargetmixin.md) | 创建用于混合目标的便捷函数 |
|
|
50
|
+
| [createTierModeOptionsPluginHost()](./plugin-tls.createtiermodeoptionspluginhost.md) | 创建带有选项机制的插件宿主类 比 直接使用 ModeOptionsPluginHost 提供了完善的类型推导 |
|
|
51
|
+
| [createTierOptionsPluginHost()](./plugin-tls.createtieroptionspluginhost.md) | 创建带有选项机制的插件宿主类 比 直接使用 OptionsPluginHost 提供了完善的类型推导 |
|
|
52
|
+
| [defineExtend(cla, ext)](./plugin-tls.defineextend.md) | 定义扩展的类型便利函数 |
|
|
53
|
+
| [defineExtendWithInit(cla, ext)](./plugin-tls.defineextendwithinit.md) | 定义扩展的类型便利函数 |
|
|
54
|
+
| [defineMixin(target, mixin)](./plugin-tls.definemixin.md) | 定义混合的类型便利函数 |
|
|
55
|
+
| [extendTarget(cla, ext)](./plugin-tls.extendtarget.md) | 扩展目标 |
|
|
56
|
+
| [extendTargetWithInit(cla, ext)](./plugin-tls.extendtargetwithinit.md) | 扩展目标 |
|
|
57
|
+
| [getPropertyValue(obj, props)](./plugin-tls.getpropertyvalue.md) | 通过key列表获取对象中对应属性的值 |
|
|
58
|
+
| [getPropertyValueByPath(obj, propPath)](./plugin-tls.getpropertyvaluebypath.md) | 获取对象的属性路径对应的属性值 |
|
|
59
|
+
| [getTargetProperties(target, props)](./plugin-tls.gettargetproperties.md) | 按照 props 的结构,获取 target 的 属性对象 - props 中所有 纯对象 都会被作为 props 进行递归地获取 |
|
|
60
|
+
| [mergeProperties(target, props)](./plugin-tls.mergeproperties.md) | 合并属性 该方法会将 props 深度合并到 target 中, - 所有 纯对象 的属性值都会被作为 props 进行深度合并 - 对于不是纯对象的属性,会将其视为属性值设置到到目标中对应的属性上 |
|
|
61
|
+
| [mixin(target, sources)](./plugin-tls.mixin_4.md) | 混合 |
|
|
62
|
+
| [mixinTarget(target, m)](./plugin-tls.mixintarget.md) | 混合目标 |
|
|
63
|
+
| [parsePropertyPath(propPath)](./plugin-tls.parsepropertypath.md) | 解析属性路径为属性列表 |
|
|
64
|
+
| [setPropertyValue(obj, props, value)](./plugin-tls.setpropertyvalue.md) | 通过属性路径列表设置对象中对应属性的值 |
|
|
65
|
+
| [setPropertyValueByPath(obj, propPath, value)](./plugin-tls.setpropertyvaluebypath.md) | 获取对象的属性路径对应的属性值 |
|
|
66
|
+
| [targetExtend(cla, ext)](./plugin-tls.targetextend.md) | 扩展目标 |
|
|
67
|
+
| [targetExtendWithInit(cla, ext)](./plugin-tls.targetextendwithinit.md) | 扩展目标 |
|
|
68
|
+
| [targetMixin(target, m)](./plugin-tls.targetmixin.md) | 混合目标 |
|
|
69
|
+
| [tierModeOptionsDecorator(value, context)](./plugin-tls.tiermodeoptionsdecorator.md) | 层级模式选项主机装饰器 |
|
|
70
|
+
| [tierOptionsDecorator(value, context)](./plugin-tls.tieroptionsdecorator.md) | 层级选项主机装饰器 |
|
|
71
|
+
|
|
72
|
+
## Interfaces
|
|
73
|
+
|
|
74
|
+
| Interface | Description |
|
|
75
|
+
| --- | --- |
|
|
76
|
+
| [ClassExtenderPrivateMember](./plugin-tls.classextenderprivatemember.md) | 类扩展者的私有方法 |
|
|
77
|
+
| [ClassExtenderPrivateMemberWithInit](./plugin-tls.classextenderprivatememberwithinit.md) | 类扩展者的私有方法 |
|
|
78
|
+
| [ClassType](./plugin-tls.classtype.md) | 类的类型、构造函数的类型 |
|
|
79
|
+
| [IDefaultOptionsHost](./plugin-tls.idefaultoptionshost.md) | 默认选项宿主接口 |
|
|
80
|
+
| [IIDefaultOptionsHostConstructor](./plugin-tls.iidefaultoptionshostconstructor.md) | 默认选项宿主的构建函数接口 |
|
|
81
|
+
| [IPlugin](./plugin-tls.iplugin.md) | 插件的接口 |
|
|
82
|
+
| [IPluginHost](./plugin-tls.ipluginhost.md) | 插件宿主的接口 |
|
|
83
|
+
| [IPluginHostConstructor](./plugin-tls.ipluginhostconstructor.md) | 插件宿主构造函数的接口 |
|
|
84
|
+
| [IPluginWithInit](./plugin-tls.ipluginwithinit.md) | 插件的接口 |
|
|
85
|
+
| [ITierModeOptionsHost](./plugin-tls.itiermodeoptionshost.md) | 选项宿主接口 |
|
|
86
|
+
| [ITierModeOptionsHostConstructor](./plugin-tls.itiermodeoptionshostconstructor.md) | 选项宿主的构建函数接口 |
|
|
87
|
+
| [ITierOptionsHost](./plugin-tls.itieroptionshost.md) | 选项插件宿主接口 |
|
|
88
|
+
| [ITierOptionsHostConstructor](./plugin-tls.itieroptionshostconstructor.md) | 选项插件宿主的构建函数接口 |
|
|
89
|
+
| [PrivateMemberOfExtend](./plugin-tls.privatememberofextend.md) | 用于定义扩展选项中的私有成员 |
|
|
90
|
+
| [PrivateMemberOfExtendWithInit](./plugin-tls.privatememberofextendwithinit.md) | 用于定义扩展选项中的私有成员 |
|
|
91
|
+
|
|
92
|
+
## Variables
|
|
93
|
+
|
|
94
|
+
| Variable | Description |
|
|
95
|
+
| --- | --- |
|
|
96
|
+
| [commonModeName](./plugin-tls.commonmodename.md) | 一般模式的名字 |
|
|
97
|
+
|
|
98
|
+
## Type Aliases
|
|
99
|
+
|
|
100
|
+
| Type Alias | Description |
|
|
101
|
+
| --- | --- |
|
|
102
|
+
| [BecomePluginHost](./plugin-tls.becomepluginhost.md) | 将 HOST 变成插件宿主类型 |
|
|
103
|
+
| [BecomeTierModeOptionsHost](./plugin-tls.becometiermodeoptionshost.md) | 使 HOST 变成 层级选项的宿主类型 |
|
|
104
|
+
| [BecomeTierOptionsHost](./plugin-tls.becometieroptionshost.md) | 使 HOST 变成 层级选项的宿主类型 |
|
|
105
|
+
| [ClassExtender](./plugin-tls.classextender.md) | 类扩展者 |
|
|
106
|
+
| [ClassExtenderWithInit](./plugin-tls.classextenderwithinit.md) | 类扩展者 |
|
|
107
|
+
| [FormatUseParameters](./plugin-tls.formatuseparameters.md) | 格式化 use 方法的参数列表 |
|
|
108
|
+
| [FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md) | 格式化 use 方法的参数列表 |
|
|
109
|
+
| [GetNormalizePluginOptions](./plugin-tls.getnormalizepluginoptions.md) | 获取规范化的插件选项 |
|
|
110
|
+
| [GetPluginOptions](./plugin-tls.getpluginoptions.md) | 获取插件的选项类型 |
|
|
111
|
+
| [HostInst](./plugin-tls.hostinst.md) | 插件宿主的实例类型 |
|
|
112
|
+
| [ITierModeOptionsPluginHost](./plugin-tls.itiermodeoptionspluginhost.md) | 选项插件宿主接口 |
|
|
113
|
+
| [ITierModeOptionsPluginHostConstructor](./plugin-tls.itiermodeoptionspluginhostconstructor.md) | 选项插件宿主的构建函数接口 |
|
|
114
|
+
| [ITierOptionsPluginHost](./plugin-tls.itieroptionspluginhost.md) | 选项插件宿主接口 |
|
|
115
|
+
| [ITierOptionsPluginHostConstructor](./plugin-tls.itieroptionspluginhostconstructor.md) | 选项插件宿主的构建函数接口 |
|
|
116
|
+
| [NormalizePluginOptions](./plugin-tls.normalizepluginoptions.md) | 将选项格式成方法的参数类型 |
|
|
117
|
+
| [PluginCreatedReturnType](./plugin-tls.plugincreatedreturntype.md) | 插件的 created 方法的返回值类型 |
|
|
118
|
+
| [PluginUseReturnType](./plugin-tls.pluginusereturntype.md) | 插件的 used 方法的返回值类型 |
|
|
119
|
+
| [ReplaceConstructorParameters](./plugin-tls.replaceconstructorparameters.md) | 替换构建函数的参数 |
|
|
120
|
+
| [ReplaceConstructorReturn](./plugin-tls.replaceconstructorreturn.md) | 替换构造函数的返回类型 |
|
|
121
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [mergeProperties](./plugin-tls.mergeproperties.md)
|
|
4
|
+
|
|
5
|
+
## mergeProperties() function
|
|
6
|
+
|
|
7
|
+
合并属性 该方法会将 props 深度合并到 target 中, - 所有 纯对象 的属性值都会被作为 props 进行深度合并 - 对于不是纯对象的属性,会将其视为属性值设置到到目标中对应的属性上
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export declare function mergeProperties(target: any, props: any): any;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| target | any | |
|
|
20
|
+
| props | any | |
|
|
21
|
+
|
|
22
|
+
**Returns:**
|
|
23
|
+
|
|
24
|
+
any
|
|
25
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [mixin](./plugin-tls.mixin_4.md)
|
|
4
|
+
|
|
5
|
+
## mixin() function
|
|
6
|
+
|
|
7
|
+
混合
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export declare function mixin(target: any, ...sources: any[]): any;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| target | any | 目标对象,所有 源对象 的属性都要被混入进到 目标对象中 |
|
|
20
|
+
| sources | any\[\] | 源对象,所有 源对象 的属性都要被混入进到 目标对象中 |
|
|
21
|
+
|
|
22
|
+
**Returns:**
|
|
23
|
+
|
|
24
|
+
any
|
|
25
|
+
|
|
26
|
+
混入后的 target
|
|
27
|
+
|
|
28
|
+
## Remarks
|
|
29
|
+
|
|
30
|
+
将 source 的所有成员混入 target 对象中。
|
|
31
|
+
|
|
32
|
+
与 `Object.assign()` 的功能类似,不同的是 `mixin()` 会在 target 对象中 保持 source 对象属性的 PropertyDescriptors
|
|
33
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [mixinTarget](./plugin-tls.mixintarget.md)
|
|
4
|
+
|
|
5
|
+
## mixinTarget() function
|
|
6
|
+
|
|
7
|
+
混合目标
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export declare function mixinTarget<T, M>(target: T, m: M & ThisType<T & M>): M & ThisType<T & M> & T;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| target | T | 混合的目标,用作 this 的类型 |
|
|
20
|
+
| m | M & ThisType<T & M> | 混合对象,会自动更改其this的类型 |
|
|
21
|
+
|
|
22
|
+
**Returns:**
|
|
23
|
+
|
|
24
|
+
M & ThisType<T & M> & T
|
|
25
|
+
|
|
26
|
+
返回混合后的 target 对象
|
|
27
|
+
|
|
28
|
+
## Remarks
|
|
29
|
+
|
|
30
|
+
会执行对 CEarth 类的扩展操作。 与 [targetMixin()](./plugin-tls.targetmixin.md) 的区别仅仅是返回类型不一样。
|
|
31
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [ModeOptions](./plugin-tls.modeoptions.md) > [(constructor)](./plugin-tls.modeoptions._constructor_.md)
|
|
4
|
+
|
|
5
|
+
## ModeOptions.(constructor)
|
|
6
|
+
|
|
7
|
+
Constructs a new instance of the `ModeOptions` class
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
constructor(mode: Mode);
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| mode | Mode | |
|
|
20
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [ModeOptions](./plugin-tls.modeoptions.md) > [(constructor)](./plugin-tls.modeoptions._constructor__1.md)
|
|
4
|
+
|
|
5
|
+
## ModeOptions.(constructor)
|
|
6
|
+
|
|
7
|
+
Constructs a new instance of the `ModeOptions` class
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
constructor(mode: Mode, options?: Option);
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| mode | Mode | |
|
|
20
|
+
| options | Option | _(Optional)_ |
|
|
21
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [ModeOptions](./plugin-tls.modeoptions.md) > [\_mode](./plugin-tls.modeoptions._mode.md)
|
|
4
|
+
|
|
5
|
+
## ModeOptions.\_mode property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
protected _mode?: Mode;
|
|
11
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [ModeOptions](./plugin-tls.modeoptions.md) > [\_modeNames](./plugin-tls.modeoptions._modenames.md)
|
|
4
|
+
|
|
5
|
+
## ModeOptions.\_modeNames property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
protected _modeNames: Mode[] | null;
|
|
11
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [ModeOptions](./plugin-tls.modeoptions.md) > [\_plainFullOption](./plugin-tls.modeoptions._plainfulloption.md)
|
|
4
|
+
|
|
5
|
+
## ModeOptions.\_plainFullOption property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
protected _plainFullOption: Option | null;
|
|
11
|
+
```
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [ModeOptions](./plugin-tls.modeoptions.md) > [getFullModeOption](./plugin-tls.modeoptions.getfullmodeoption.md)
|
|
4
|
+
|
|
5
|
+
## ModeOptions.getFullModeOption() method
|
|
6
|
+
|
|
7
|
+
返回已合并继承选项的完整选项
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
getFullModeOption(mode: Mode): Option | null;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| mode | Mode | |
|
|
20
|
+
|
|
21
|
+
**Returns:**
|
|
22
|
+
|
|
23
|
+
Option \| null
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## Remarks
|
|
27
|
+
|
|
28
|
+
与继承选项合并
|
|
29
|
+
|