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,6 +1,6 @@
|
|
|
1
1
|
import { TierModeOptions } from "../../options-manager/TierModeOptions";
|
|
2
2
|
import { PluginHostEventEmitter } from "../../../plugin-host";
|
|
3
|
-
import type {
|
|
3
|
+
import type { EventMap } from "../../../plugin-host";
|
|
4
4
|
import type { AbstractConstructor, ClassType } from "type-tls";
|
|
5
5
|
/**
|
|
6
6
|
* 层级模式选项插件的宿主
|
|
@@ -11,7 +11,7 @@ import type { AbstractConstructor, ClassType } from "type-tls";
|
|
|
11
11
|
* 之所以没写在该类中的函数中,是因为 `this.pluginManager.created(this)` 通常会在构建函数执行的最后时才调用;
|
|
12
12
|
* 如果像下面写在该类的构建函数中,然后子类通过 `super()` 来调用,这样就会导致 `this.pluginManager.created(this)` 不是在最后的执行;
|
|
13
13
|
*/
|
|
14
|
-
export declare class TierModeOptionsPluginHostEventEmitter<Host, HostClass extends AbstractConstructor<Host> = ClassType<Host>, Options extends {} = any, Mode extends string | number = string, EM extends EventMap<EM> =
|
|
14
|
+
export declare class TierModeOptionsPluginHostEventEmitter<Host, HostClass extends AbstractConstructor<Host> = ClassType<Host>, Options extends {} = any, Mode extends string | number = string, EM extends EventMap<EM> = any> extends PluginHostEventEmitter<Host, HostClass, EM> {
|
|
15
15
|
/**
|
|
16
16
|
* 全局级别的默认选项
|
|
17
17
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TierModeOptionsPluginHostEventEmitter.d.ts","sourceRoot":"","sources":["../../../../src/options/options-plugin-host/tier-mode-options/TierModeOptionsPluginHostEventEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"TierModeOptionsPluginHostEventEmitter.d.ts","sourceRoot":"","sources":["../../../../src/options/options-plugin-host/tier-mode-options/TierModeOptionsPluginHostEventEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,KAAK,EAAE,mBAAmB,EAAC,SAAS,EAAE,MAAM,UAAU,CAAC;AAG9D;;;;;;;;GAQG;AACH,qBAAa,qCAAqC,CAAC,IAAI,EAAE,SAAS,SAAS,mBAAmB,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,EAAE,OAAO,SAAS,EAAE,GAAG,GAAG,EAAE,IAAI,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,EAAE,SAAS,QAAQ,CAAC,EAAE,CAAC,GAAG,GAAG,CAAE,SAAQ,sBAAsB,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC;IACzQ;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,WAAW,+BAAoD;IAE/E;;OAEG;IACH,IAAI,WAAW,mCAEd;IACD,SAAS,CAAC,YAAY,EAAG,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAExD,IAAI,IAAI,SAEP;IACD,IAAI,IAAI,CAAC,KAAK,MAAA,EAEb;IAED,IAAI,OAAO,YAEV;gBAGW,OAAO,EAAE,OAAO;CAI7B"}
|
package/dist/options/options-plugin-host/tier-options/TierOptionsPluginHostEventEmitter.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TierOptions } from "../../options-manager/index";
|
|
2
2
|
import { PluginHostEventEmitter } from "../../../plugin-host/index";
|
|
3
|
-
import type {
|
|
3
|
+
import type { EventMap } from "../../../plugin-host/index";
|
|
4
4
|
import type { AbstractConstructor, ClassType } from "type-tls";
|
|
5
5
|
/**
|
|
6
6
|
* 层级选项插件的宿主,继承自 PluginHostEventEmitter
|
|
@@ -11,7 +11,7 @@ import type { AbstractConstructor, ClassType } from "type-tls";
|
|
|
11
11
|
* 之所以没写在该类中的函数中,是因为 `this.pluginManager.created(this)` 通常会在构建函数执行的最后时才调用;
|
|
12
12
|
* 如果像下面写在该类的构建函数中,然后子类通过 `super()` 来调用,这样就会导致 `this.pluginManager.created(this)` 不是在最后的执行;
|
|
13
13
|
*/
|
|
14
|
-
export declare class TierOptionsPluginHostEventEmitter<Host, HostClass extends AbstractConstructor<Host> = ClassType<Host>, Options extends {} = any, EM extends EventMap<EM> =
|
|
14
|
+
export declare class TierOptionsPluginHostEventEmitter<Host, HostClass extends AbstractConstructor<Host> = ClassType<Host>, Options extends {} = any, EM extends EventMap<EM> = any> extends PluginHostEventEmitter<Host, HostClass, EM> {
|
|
15
15
|
/**
|
|
16
16
|
* 全局级别的默认选项
|
|
17
17
|
*/
|
package/dist/options/options-plugin-host/tier-options/TierOptionsPluginHostEventEmitter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TierOptionsPluginHostEventEmitter.d.ts","sourceRoot":"","sources":["../../../../src/options/options-plugin-host/tier-options/TierOptionsPluginHostEventEmitter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"TierOptionsPluginHostEventEmitter.d.ts","sourceRoot":"","sources":["../../../../src/options/options-plugin-host/tier-options/TierOptionsPluginHostEventEmitter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAC,SAAS,EAAE,MAAM,UAAU,CAAC;AAM9D;;;;;;;;GAQG;AACH,qBAAa,iCAAiC,CAAC,IAAI,EAAE,SAAS,SAAS,mBAAmB,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,EAAE,OAAO,SAAS,EAAE,GAAG,GAAG,EAAC,EAAE,SAAS,QAAQ,CAAC,EAAE,CAAC,GAAG,GAAG,CAAE,SAAQ,sBAAsB,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC;IAC7N;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,cAAc,mBAA0B;IAGxD;;OAEG;IACH,IAAI,cAAc,yBAEjB;IACD,SAAS,CAAC,eAAe,EAAG,WAAW,CAAC,OAAO,CAAC,CAAC;gBAErC,OAAO,EAAE,OAAO;CAI7B"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PluginExtendManager } from "../plugin-manager";
|
|
2
2
|
import type { ExtendOptions, IAnyExtend, IPlugin, PluginUseArgs, PluginUseReturn } from "../plugin-manager/index";
|
|
3
3
|
import { DestroyableEventEmitter } from "@gby/destroyable";
|
|
4
|
-
import type {
|
|
4
|
+
import type { EventMap } from "@gby/destroyable";
|
|
5
5
|
import type { IPluginHost } from "./type";
|
|
6
6
|
import type { AbstractConstructor, ClassType } from "type-tls";
|
|
7
|
-
export type {
|
|
7
|
+
export type { EventMap };
|
|
8
8
|
/**
|
|
9
9
|
* 插件的宿主
|
|
10
10
|
*
|
|
@@ -16,7 +16,7 @@ export type { DefaultEventMap, EventMap };
|
|
|
16
16
|
* 之所以没写在该类中的函数中,是因为 `this.pluginManager.created(this)` 通常会在构建函数执行的最后时才调用;
|
|
17
17
|
* 如果像下面写在该类的构建函数中,然后子类通过 `super()` 来调用,这样就会导致 `this.pluginManager.created(this)` 不是在最后的执行;
|
|
18
18
|
*/
|
|
19
|
-
export declare class PluginHostEventEmitter<Host, HostClass extends AbstractConstructor<Host> = ClassType<Host>, EM extends EventMap<EM> =
|
|
19
|
+
export declare class PluginHostEventEmitter<Host, HostClass extends AbstractConstructor<Host> = ClassType<Host>, EM extends EventMap<EM> = any> extends DestroyableEventEmitter<EM> implements IPluginHost<Host, HostClass> {
|
|
20
20
|
/**
|
|
21
21
|
* 是否使用独立的插件管理器
|
|
22
22
|
* @defaultValue false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PluginHostEventEmitter.d.ts","sourceRoot":"","sources":["../../src/plugin-host/PluginHostEventEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAElH,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"PluginHostEventEmitter.d.ts","sourceRoot":"","sources":["../../src/plugin-host/PluginHostEventEmitter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAElH,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE/D,YAAY,EAAE,QAAQ,EAAC,CAAA;AAGvB;;;;;;;;;;GAUG;AACH,qBAAa,sBAAsB,CAAC,IAAI,EAAE,SAAS,SAAS,mBAAmB,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE,SAAS,QAAQ,CAAC,EAAE,CAAC,GAAG,GAAG,CAAE,SAAQ,uBAAuB,CAAC,EAAE,CAAE,YAAW,WAAW,CAAC,IAAI,EAAE,SAAS,CAAC;IACjN;;;OAGG;IACH,MAAM,CAAC,qBAAqB,UAAS;IAErC;;OAEG;IACH,MAAM,KAAK,aAAa,kCAKvB;IACD,MAAM,CAAC,cAAc,gCAA0C;IAE/D;;OAEG;IACH,IAAI,aAAa,IAAI,mBAAmB,CAAC,IAAI,EAAE,SAAS,CAAC,CAExD;IAED;;OAEG;IACH,MAAM,CAAC,SAAS,CAAC,SAAS,SAAS,mBAAmB,EAAC,MAAM,SAAS,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC,EAAC,SAAS,CAAC,EAAE,IAAI,EAAC,SAAS,EAAC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC;IAI/K;;OAEG;IACH,MAAM,CAAC,SAAS,CAAC,SAAS,SAAS,mBAAmB,EAAC,CAAC,SAAS,UAAU,CAAC,SAAS,CAAC,EAAE,IAAI,EAAC,SAAS,EAAC,GAAG,EAAE,aAAa,CAAC,SAAS,EAAE,CAAC,CAAC,GAAE,CAAC;IAI1I;;;;OAIG;IACH,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,GAAE,OAAO;IAKnC;;;;;OAKG;IAOH;;;;;OAKG;IACH,SAAS,CAAC,CAAC,SAAS,OAAO,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC;IAIvG;;OAEG;IACH,SAAS,CAAC,CAAC,SAAS,UAAU,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,aAAa,CAAC,SAAS,EAAE,CAAC,CAAC,EAAC,GAAG,IAAI,EAAC,qBAAqB,CAAC,SAAS,CAAC,GAAE,CAAC;IAKvH;;;;;OAKG;IACH,IAAI,CAAC,GAAG,IAAI,EAAC,GAAG,GAAG,GAAG;IAItB;;;OAGG;IACM,WAAW;CAQrB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plugin-tls",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "plugin-tls 是插件系统相应的工具,可快速地让任何模块具备插件机制",
|
|
5
5
|
"main": "./dist/index.umd.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"vite-node": "latest"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@gby/destroyable": "^3.
|
|
56
|
-
"com-tools": "^2.21.
|
|
55
|
+
"@gby/destroyable": "^3.7.0",
|
|
56
|
+
"com-tools": "^2.21.4",
|
|
57
57
|
"deepmerge-ts": "^7.1.5",
|
|
58
58
|
"type-tls": "^3.11.0"
|
|
59
59
|
},
|
package/doc/api/index.md
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md)
|
|
4
|
-
|
|
5
|
-
## API Reference
|
|
6
|
-
|
|
7
|
-
## Packages
|
|
8
|
-
|
|
9
|
-
<table><thead><tr><th>
|
|
10
|
-
|
|
11
|
-
Package
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
</th><th>
|
|
15
|
-
|
|
16
|
-
Description
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
</th></tr></thead>
|
|
20
|
-
<tbody><tr><td>
|
|
21
|
-
|
|
22
|
-
[plugin-tls](./plugin-tls.md)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</td><td>
|
|
26
|
-
|
|
27
|
-
插件系统
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</td></tr>
|
|
31
|
-
</tbody></table>
|
|
32
|
-
|
|
@@ -1,75 +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) > [addDefaultOptions](./plugin-tls.adddefaultoptions.md)
|
|
4
|
-
|
|
5
|
-
## addDefaultOptions() function
|
|
6
|
-
|
|
7
|
-
创建增加带有选项机制的装饰器
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function addDefaultOptions<Options>(options: Options, name?: Optional<string>): <Clas extends new (...args: any) => Object>(target: Clas) => void;
|
|
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
|
-
options
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
Options
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
选项内容
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
<tr><td>
|
|
50
|
-
|
|
51
|
-
name
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</td><td>
|
|
55
|
-
|
|
56
|
-
Optional<string>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
</td><td>
|
|
60
|
-
|
|
61
|
-
_(Optional)_
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
</td></tr>
|
|
65
|
-
</tbody></table>
|
|
66
|
-
|
|
67
|
-
**Returns:**
|
|
68
|
-
|
|
69
|
-
<Clas extends new (...args: any) => Object>(target: Clas) => void
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
## Remarks
|
|
73
|
-
|
|
74
|
-
类装饰器的工厂函数
|
|
75
|
-
|
|
@@ -1,85 +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) > [addInstOptions](./plugin-tls.addinstoptions.md)
|
|
4
|
-
|
|
5
|
-
## addInstOptions() function
|
|
6
|
-
|
|
7
|
-
创建增加带有选项机制的装饰器
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function addInstOptions<Clas extends new (...args: any) => Object>(target: Clas, propertyKey: string, descriptor: PropertyDescriptor): PropertyDescriptor;
|
|
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
|
-
Clas
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</td></tr>
|
|
47
|
-
<tr><td>
|
|
48
|
-
|
|
49
|
-
propertyKey
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
</td><td>
|
|
53
|
-
|
|
54
|
-
string
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
</td><td>
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
</td></tr>
|
|
61
|
-
<tr><td>
|
|
62
|
-
|
|
63
|
-
descriptor
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
</td><td>
|
|
67
|
-
|
|
68
|
-
PropertyDescriptor
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
</td><td>
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
</td></tr>
|
|
75
|
-
</tbody></table>
|
|
76
|
-
|
|
77
|
-
**Returns:**
|
|
78
|
-
|
|
79
|
-
PropertyDescriptor
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
## Remarks
|
|
83
|
-
|
|
84
|
-
静态属性装饰器
|
|
85
|
-
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [plugin-tls](./plugin-tls.md) > [allFunctionApply](./plugin-tls.allfunctionapply.md)
|
|
4
|
-
|
|
5
|
-
## allFunctionApply() function
|
|
6
|
-
|
|
7
|
-
对一组函数批量调用 apply
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function allFunctionApply<T, A extends any[], R>(funArr: ((this: T, ...args: A) => void)[], thisArg: T, args: A): void;
|
|
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
|
-
funArr
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
((this: T, ...args: A) => void)\[\]
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</td></tr>
|
|
47
|
-
<tr><td>
|
|
48
|
-
|
|
49
|
-
thisArg
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
</td><td>
|
|
53
|
-
|
|
54
|
-
T
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
</td><td>
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
</td></tr>
|
|
61
|
-
<tr><td>
|
|
62
|
-
|
|
63
|
-
args
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
</td><td>
|
|
67
|
-
|
|
68
|
-
A
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
</td><td>
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
</td></tr>
|
|
75
|
-
</tbody></table>
|
|
76
|
-
|
|
77
|
-
**Returns:**
|
|
78
|
-
|
|
79
|
-
void
|
|
80
|
-
|
|
@@ -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) > [BecomePluginHost](./plugin-tls.becomepluginhost.md)
|
|
4
|
-
|
|
5
|
-
## BecomePluginHost type
|
|
6
|
-
|
|
7
|
-
将 HOST 变成插件宿主类型
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export type BecomePluginHost<HOST extends new (...args: any) => Object, Plugin extends IPlugin<HOST, any> = IPlugin<HOST, any>> = HOST & IPluginHostConstructor<HOST & IPluginHostConstructor<HOST, Plugin>, Plugin> & ReplaceConstructorReturn<HOST, InstanceType<HOST> & IPluginHost<HOST & IPluginHostConstructor<HOST & IPluginHostConstructor<HOST, Plugin>, Plugin>>>;
|
|
13
|
-
```
|
|
14
|
-
**References:** [IPlugin](./plugin-tls.iplugin.md)<!-- -->, [IPluginHostConstructor](./plugin-tls.ipluginhostconstructor.md)<!-- -->, [ReplaceConstructorReturn](./plugin-tls.replaceconstructorreturn.md)<!-- -->, [IPluginHost](./plugin-tls.ipluginhost.md)
|
|
15
|
-
|
|
@@ -1,72 +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) > [becomePluginHost\_Extends](./plugin-tls.becomepluginhost_extends.md)
|
|
4
|
-
|
|
5
|
-
## becomePluginHost\_Extends() function
|
|
6
|
-
|
|
7
|
-
插件缩主类的装饰器(继承版)
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function becomePluginHost_Extends<HOST extends new (...args: any) => Object>(target: HOST): {
|
|
13
|
-
new (...args: any): {
|
|
14
|
-
get pluginManager(): PluginManager</*elided*/ any & HOST, IPlugin</*elided*/ any & HOST, any>>;
|
|
15
|
-
use<Plugin extends IPlugin</*elided*/ any & HOST, any>>(plugin: Plugin, ...options: FormatUsePluginParameters<Plugin>): void | PluginCreatedReturnType<Plugin>;
|
|
16
|
-
destroy(): void;
|
|
17
|
-
constructor: Function;
|
|
18
|
-
toString(): string;
|
|
19
|
-
toLocaleString(): string;
|
|
20
|
-
valueOf(): Object;
|
|
21
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
22
|
-
isPrototypeOf(v: Object): boolean;
|
|
23
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
24
|
-
};
|
|
25
|
-
get pluginManager(): PluginManager</*elided*/ any & HOST, IPlugin</*elided*/ any & HOST, any>>;
|
|
26
|
-
_pluginManager: PluginManager</*elided*/ any & HOST>;
|
|
27
|
-
use<Plugin extends IPlugin</*elided*/ any & HOST, any>>(plugin: Plugin, ...options: FormatUsePluginParameters<Plugin>): void | ReturnType<Plugin["used"]>;
|
|
28
|
-
} & HOST;
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## Parameters
|
|
32
|
-
|
|
33
|
-
<table><thead><tr><th>
|
|
34
|
-
|
|
35
|
-
Parameter
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</th><th>
|
|
39
|
-
|
|
40
|
-
Type
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</th><th>
|
|
44
|
-
|
|
45
|
-
Description
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</th></tr></thead>
|
|
49
|
-
<tbody><tr><td>
|
|
50
|
-
|
|
51
|
-
target
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</td><td>
|
|
55
|
-
|
|
56
|
-
HOST
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
</td><td>
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
</td></tr>
|
|
63
|
-
</tbody></table>
|
|
64
|
-
|
|
65
|
-
**Returns:**
|
|
66
|
-
|
|
67
|
-
{ new (...args: any): { get pluginManager(): [PluginManager](./plugin-tls.pluginmanager.md)<!-- --></\*elided\*/ any & HOST, [IPlugin](./plugin-tls.iplugin.md)<!-- --></\*elided\*/ any & HOST, any>>; use<Plugin extends [IPlugin](./plugin-tls.iplugin.md)<!-- --></\*elided\*/ any & HOST, any>>(plugin: Plugin, ...options: [FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- --><Plugin>): void \| [PluginCreatedReturnType](./plugin-tls.plugincreatedreturntype.md)<!-- --><Plugin>; destroy(): void; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: PropertyKey): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: PropertyKey): boolean; }; get pluginManager(): [PluginManager](./plugin-tls.pluginmanager.md)<!-- --></\*elided\*/ any & HOST, [IPlugin](./plugin-tls.iplugin.md)<!-- --></\*elided\*/ any & HOST, any>>; \_pluginManager: [PluginManager](./plugin-tls.pluginmanager.md)<!-- --></\*elided\*/ any & HOST>; use<Plugin extends [IPlugin](./plugin-tls.iplugin.md)<!-- --></\*elided\*/ any & HOST, any>>(plugin: Plugin, ...options: [FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- --><Plugin>): void \| ReturnType<Plugin\["used"\]>; } & HOST
|
|
68
|
-
|
|
69
|
-
## Remarks
|
|
70
|
-
|
|
71
|
-
通过继承实现
|
|
72
|
-
|
|
@@ -1,57 +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) > [becomePluginHost\_Proxy](./plugin-tls.becomepluginhost_proxy.md)
|
|
4
|
-
|
|
5
|
-
## becomePluginHost\_Proxy() function
|
|
6
|
-
|
|
7
|
-
变成插件宿主
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function becomePluginHost_Proxy<HOST extends new (...args: any) => Object, Plugin extends IPlugin<HOST, any> = IPlugin<HOST, any>>(target: HOST): HOST;
|
|
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
|
-
HOST
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</td></tr>
|
|
47
|
-
</tbody></table>
|
|
48
|
-
|
|
49
|
-
**Returns:**
|
|
50
|
-
|
|
51
|
-
HOST
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
## Remarks
|
|
55
|
-
|
|
56
|
-
也可作为装饰器
|
|
57
|
-
|
|
@@ -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) > [BecomeTierModeOptionsHost](./plugin-tls.becometiermodeoptionshost.md)
|
|
4
|
-
|
|
5
|
-
## BecomeTierModeOptionsHost type
|
|
6
|
-
|
|
7
|
-
使 HOST 变成 层级选项的宿主类型
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export type BecomeTierModeOptionsHost<HOST extends new (...args: any) => Object, Options extends {} = any, Mode extends string | number = string> = HOST & ITierModeOptionsHostConstructor<Options, Mode> & ReplaceConstructorReturn<HOST, InstanceType<HOST> & ITierModeOptionsHost<Options, Mode>>;
|
|
13
|
-
```
|
|
14
|
-
**References:** [ITierModeOptionsHostConstructor](./plugin-tls.itiermodeoptionshostconstructor.md)<!-- -->, [ReplaceConstructorReturn](./plugin-tls.replaceconstructorreturn.md)<!-- -->, [ITierModeOptionsHost](./plugin-tls.itiermodeoptionshost.md)
|
|
15
|
-
|
|
@@ -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) > [BecomeTierOptionsHost](./plugin-tls.becometieroptionshost.md)
|
|
4
|
-
|
|
5
|
-
## BecomeTierOptionsHost type
|
|
6
|
-
|
|
7
|
-
使 HOST 变成 层级选项的宿主类型
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export type BecomeTierOptionsHost<HOST extends new (...args: any) => Object, Options extends {} = any> = HOST & ITierOptionsHostConstructor<Options> & ReplaceConstructorReturn<HOST, InstanceType<HOST> & ITierOptionsHost<Options>>;
|
|
13
|
-
```
|
|
14
|
-
**References:** [ITierOptionsHostConstructor](./plugin-tls.itieroptionshostconstructor.md)<!-- -->, [ReplaceConstructorReturn](./plugin-tls.replaceconstructorreturn.md)<!-- -->, [ITierOptionsHost](./plugin-tls.itieroptionshost.md)
|
|
15
|
-
|
|
@@ -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) > [ClassExtender](./plugin-tls.classextender.md)
|
|
4
|
-
|
|
5
|
-
## ClassExtender type
|
|
6
|
-
|
|
7
|
-
类扩展者
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export type ClassExtender<C extends new (...args: any) => Object> = C & ClassExtenderPrivateMember<C>;
|
|
13
|
-
```
|
|
14
|
-
**References:** [ClassExtenderPrivateMember](./plugin-tls.classextenderprivatemember.md)
|
|
15
|
-
|
|
@@ -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) > [ClassExtenderPrivateMember](./plugin-tls.classextenderprivatemember.md) > [\_constructors](./plugin-tls.classextenderprivatemember._constructors.md)
|
|
4
|
-
|
|
5
|
-
## ClassExtenderPrivateMember.\_constructors property
|
|
6
|
-
|
|
7
|
-
保存扩展类自定义的构建函数
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
readonly _constructors: ((this: InstanceType<C>, ...args: ConstructorParameters<C>) => void)[];
|
|
13
|
-
```
|
|
@@ -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) > [ClassExtenderPrivateMember](./plugin-tls.classextenderprivatemember.md) > [\_destroys](./plugin-tls.classextenderprivatemember._destroys.md)
|
|
4
|
-
|
|
5
|
-
## ClassExtenderPrivateMember.\_destroys property
|
|
6
|
-
|
|
7
|
-
保存扩展类自定义的销毁函数
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
readonly _destroys: ((this: InstanceType<C>) => void)[];
|
|
13
|
-
```
|