plugin-tls 2.0.0 → 3.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 +11 -19
- package/dist/extend/extend.d.ts.map +1 -1
- package/dist/extend/index.d.ts +3 -0
- package/dist/extend/index.d.ts.map +1 -0
- package/dist/extend/mixin.d.ts.map +1 -1
- package/dist/index.d.ts +6 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +586 -263
- package/dist/index.umd.cjs +1 -1
- package/dist/options-manager/defaultOptions.d.ts +2 -2
- package/dist/options-manager/defaultOptions.d.ts.map +1 -1
- package/dist/options-manager/index.d.ts +6 -0
- package/dist/options-manager/index.d.ts.map +1 -0
- package/dist/options-plugin-host/index.d.ts +3 -0
- package/dist/options-plugin-host/index.d.ts.map +1 -0
- package/dist/options-plugin-host/tier-mode-options/TierModeOptionsPluginHost.d.ts +28 -0
- package/dist/options-plugin-host/tier-mode-options/TierModeOptionsPluginHost.d.ts.map +1 -0
- package/dist/options-plugin-host/tier-mode-options/TierModeOptionsPluginHostEventEmitter.d.ts +29 -0
- package/dist/options-plugin-host/tier-mode-options/TierModeOptionsPluginHostEventEmitter.d.ts.map +1 -0
- package/dist/options-plugin-host/tier-mode-options/TierModeOptionsPluginHostEventTarget.d.ts +28 -0
- package/dist/options-plugin-host/tier-mode-options/TierModeOptionsPluginHostEventTarget.d.ts.map +1 -0
- package/dist/options-plugin-host/tier-mode-options/createTierModeOptionsPluginHost.d.ts +58 -0
- package/dist/options-plugin-host/tier-mode-options/createTierModeOptionsPluginHost.d.ts.map +1 -0
- package/dist/options-plugin-host/tier-mode-options/index.d.ts +6 -0
- package/dist/options-plugin-host/tier-mode-options/index.d.ts.map +1 -0
- package/dist/options-plugin-host/tier-mode-options/type.d.ts +7 -0
- package/dist/options-plugin-host/tier-mode-options/type.d.ts.map +1 -0
- package/dist/options-plugin-host/tier-options/TierOptionsPluginHost.d.ts +25 -0
- package/dist/options-plugin-host/tier-options/TierOptionsPluginHost.d.ts.map +1 -0
- package/dist/options-plugin-host/tier-options/TierOptionsPluginHostEventEmitter.d.ts +26 -0
- package/dist/options-plugin-host/tier-options/TierOptionsPluginHostEventEmitter.d.ts.map +1 -0
- package/dist/options-plugin-host/tier-options/TierOptionsPluginHostEventTarget.d.ts +25 -0
- package/dist/options-plugin-host/tier-options/TierOptionsPluginHostEventTarget.d.ts.map +1 -0
- package/dist/options-plugin-host/tier-options/createTierOptionsPluginHost.d.ts +55 -0
- package/dist/options-plugin-host/tier-options/createTierOptionsPluginHost.d.ts.map +1 -0
- package/dist/options-plugin-host/tier-options/index.d.ts +5 -0
- package/dist/options-plugin-host/tier-options/index.d.ts.map +1 -0
- package/dist/plugin-host/PluginHost.d.ts +41 -187
- package/dist/plugin-host/PluginHost.d.ts.map +1 -1
- package/dist/plugin-host/PluginHostEventEmitter.d.ts +64 -0
- package/dist/plugin-host/PluginHostEventEmitter.d.ts.map +1 -0
- package/dist/plugin-host/PluginHostEventTarget.d.ts +62 -0
- package/dist/plugin-host/PluginHostEventTarget.d.ts.map +1 -0
- package/dist/plugin-host/createPluginHost.d.ts +87 -0
- package/dist/plugin-host/createPluginHost.d.ts.map +1 -0
- package/dist/plugin-host/decorator.d.ts +177 -0
- package/dist/plugin-host/decorator.d.ts.map +1 -0
- package/dist/plugin-host/index.d.ts +7 -0
- package/dist/plugin-host/index.d.ts.map +1 -0
- package/dist/plugin-host/type.d.ts +52 -0
- package/dist/plugin-host/type.d.ts.map +1 -0
- package/dist/plugin-manager/IPlugin.d.ts +47 -0
- package/dist/plugin-manager/IPlugin.d.ts.map +1 -0
- package/dist/plugin-manager/PluginManager.d.ts +27 -80
- package/dist/plugin-manager/PluginManager.d.ts.map +1 -1
- package/dist/plugin-manager/index.d.ts +3 -0
- package/dist/plugin-manager/index.d.ts.map +1 -0
- package/dist/plugins/index.d.ts +3 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/tier-mode-options/decorator.d.ts +14 -0
- package/dist/plugins/tier-mode-options/decorator.d.ts.map +1 -0
- package/dist/plugins/tier-mode-options/plugin.d.ts +3 -0
- package/dist/plugins/tier-mode-options/plugin.d.ts.map +1 -0
- package/dist/plugins/tier-mode-options/type.d.ts +35 -0
- package/dist/plugins/tier-mode-options/type.d.ts.map +1 -0
- package/dist/plugins/tier-mode-options-plugin.d.ts +4 -0
- package/dist/plugins/tier-mode-options-plugin.d.ts.map +1 -0
- package/dist/plugins/tier-options/decorator.d.ts +14 -0
- package/dist/plugins/tier-options/decorator.d.ts.map +1 -0
- package/dist/plugins/tier-options/plugin.d.ts +11 -0
- package/dist/plugins/tier-options/plugin.d.ts.map +1 -0
- package/dist/plugins/tier-options/type.d.ts +36 -0
- package/dist/plugins/tier-options/type.d.ts.map +1 -0
- package/dist/plugins/tier-options-plugin.d.ts +4 -0
- package/dist/plugins/tier-options-plugin.d.ts.map +1 -0
- package/doc/api/plugin-tls.adddefaultoptions.md +2 -2
- package/doc/api/plugin-tls.addinstoptions.md +1 -1
- package/doc/api/plugin-tls.becomepluginhost.md +1 -1
- package/doc/api/plugin-tls.becomepluginhost_extends.md +9 -3
- package/doc/api/plugin-tls.becomepluginhost_proxy.md +1 -1
- package/doc/api/plugin-tls.becometiermodeoptionshost.md +1 -1
- package/doc/api/plugin-tls.becometieroptionshost.md +1 -1
- package/doc/api/plugin-tls.classextender.md +1 -1
- package/doc/api/plugin-tls.classextenderprivatemember.md +1 -1
- package/doc/api/plugin-tls.classextenderprivatememberwithinit.md +1 -1
- package/doc/api/plugin-tls.classextenderwithinit.md +1 -1
- package/doc/api/plugin-tls.createpluginhost.md +39 -6
- package/doc/api/plugin-tls.createtiermodeoptionspluginhost.md +41 -5
- package/doc/api/plugin-tls.createtieroptionspluginhost.md +41 -5
- package/doc/api/plugin-tls.hostinst.md +1 -1
- package/doc/api/plugin-tls.privatememberofextend.md +1 -1
- package/doc/api/plugin-tls.privatememberofextendwithinit.md +1 -1
- package/package.json +3 -3
- package/dist/plugin-host/TierModeOptionsPluginHost.d.ts +0 -131
- package/dist/plugin-host/TierModeOptionsPluginHost.d.ts.map +0 -1
- package/dist/plugin-host/TierOptionsPluginHost.d.ts +0 -117
- package/dist/plugin-host/TierOptionsPluginHost.d.ts.map +0 -1
- package/dist/plugin-manager/PluginManagerWithInit.d.ts +0 -36
- package/dist/plugin-manager/PluginManagerWithInit.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tier-options-plugin.d.ts","sourceRoot":"","sources":["../../src/plugins/tier-options-plugin.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,0BAA0B,CAAA;AACxC,cAAc,qBAAqB,CAAA"}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
export declare function addDefaultOptions<Options>(options: Options, name?: Optional<string>): <Clas extends new (...args: any) =>
|
|
12
|
+
export declare function addDefaultOptions<Options>(options: Options, name?: Optional<string>): <Clas extends new (...args: any) => Object>(target: Clas) => void;
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
@@ -66,7 +66,7 @@ _(Optional)_
|
|
|
66
66
|
|
|
67
67
|
**Returns:**
|
|
68
68
|
|
|
69
|
-
<Clas extends new (...args: any) =>
|
|
69
|
+
<Clas extends new (...args: any) => Object>(target: Clas) => void
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
## Remarks
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
export declare function addInstOptions<Clas extends new (...args: any) =>
|
|
12
|
+
export declare function addInstOptions<Clas extends new (...args: any) => Object>(target: Clas, propertyKey: string, descriptor: PropertyDescriptor): PropertyDescriptor;
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
export type BecomePluginHost<HOST extends new (...args: any) =>
|
|
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
13
|
```
|
|
14
14
|
**References:** [IPlugin](./plugin-tls.iplugin.md)<!-- -->, [IPluginHostConstructor](./plugin-tls.ipluginhostconstructor.md)<!-- -->, [ReplaceConstructorReturn](./plugin-tls.replaceconstructorreturn.md)<!-- -->, [IPluginHost](./plugin-tls.ipluginhost.md)
|
|
15
15
|
|
|
@@ -9,12 +9,18 @@
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
export declare function becomePluginHost_Extends<HOST extends new (...args: any) =>
|
|
12
|
+
export declare function becomePluginHost_Extends<HOST extends new (...args: any) => Object>(target: HOST): {
|
|
13
13
|
new (...args: any): {
|
|
14
|
-
[x: string]: any;
|
|
15
14
|
get pluginManager(): PluginManager</*elided*/ any & HOST, IPlugin</*elided*/ any & HOST, any>>;
|
|
16
15
|
use<Plugin extends IPlugin</*elided*/ any & HOST, any>>(plugin: Plugin, ...options: FormatUsePluginParameters<Plugin>): void | PluginCreatedReturnType<Plugin>;
|
|
17
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;
|
|
18
24
|
};
|
|
19
25
|
get pluginManager(): PluginManager</*elided*/ any & HOST, IPlugin</*elided*/ any & HOST, any>>;
|
|
20
26
|
_pluginManager: PluginManager</*elided*/ any & HOST>;
|
|
@@ -58,7 +64,7 @@ HOST
|
|
|
58
64
|
|
|
59
65
|
**Returns:**
|
|
60
66
|
|
|
61
|
-
{ new (...args: any): {
|
|
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
|
|
62
68
|
|
|
63
69
|
## Remarks
|
|
64
70
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
export declare function becomePluginHost_Proxy<HOST extends new (...args: any) =>
|
|
12
|
+
export declare function becomePluginHost_Proxy<HOST extends new (...args: any) => Object, Plugin extends IPlugin<HOST, any> = IPlugin<HOST, any>>(target: HOST): HOST;
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
export type BecomeTierModeOptionsHost<HOST extends new (...args: any) =>
|
|
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
13
|
```
|
|
14
14
|
**References:** [ITierModeOptionsHostConstructor](./plugin-tls.itiermodeoptionshostconstructor.md)<!-- -->, [ReplaceConstructorReturn](./plugin-tls.replaceconstructorreturn.md)<!-- -->, [ITierModeOptionsHost](./plugin-tls.itiermodeoptionshost.md)
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
export type BecomeTierOptionsHost<HOST extends new (...args: any) =>
|
|
12
|
+
export type BecomeTierOptionsHost<HOST extends new (...args: any) => Object, Options extends {} = any> = HOST & ITierOptionsHostConstructor<Options> & ReplaceConstructorReturn<HOST, InstanceType<HOST> & ITierOptionsHost<Options>>;
|
|
13
13
|
```
|
|
14
14
|
**References:** [ITierOptionsHostConstructor](./plugin-tls.itieroptionshostconstructor.md)<!-- -->, [ReplaceConstructorReturn](./plugin-tls.replaceconstructorreturn.md)<!-- -->, [ITierOptionsHost](./plugin-tls.itieroptionshost.md)
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
export type ClassExtender<C extends new (...args: any) =>
|
|
12
|
+
export type ClassExtender<C extends new (...args: any) => Object> = C & ClassExtenderPrivateMember<C>;
|
|
13
13
|
```
|
|
14
14
|
**References:** [ClassExtenderPrivateMember](./plugin-tls.classextenderprivatemember.md)
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
export interface ClassExtenderPrivateMemberWithInit<C extends new (...args: any) =>
|
|
12
|
+
export interface ClassExtenderPrivateMemberWithInit<C extends new (...args: any) => Object, InitParams extends any[] = any> extends ClassExtenderPrivateMember<C>
|
|
13
13
|
```
|
|
14
14
|
**Extends:** [ClassExtenderPrivateMember](./plugin-tls.classextenderprivatemember.md)<!-- --><C>
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
export type ClassExtenderWithInit<C extends new (...args: any) =>
|
|
12
|
+
export type ClassExtenderWithInit<C extends new (...args: any) => Object, InitParams extends any[] = any> = C & ClassExtenderPrivateMemberWithInit<C, InitParams>;
|
|
13
13
|
```
|
|
14
14
|
**References:** [ClassExtenderPrivateMemberWithInit](./plugin-tls.classextenderprivatememberwithinit.md)
|
|
15
15
|
|
|
@@ -9,15 +9,35 @@
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
export declare function createPluginHost<HOST, P extends new (...args: any) =>
|
|
12
|
+
export declare function createPluginHost<HOST, P extends new (...args: any) => Object, Plugin extends IPlugin<HOST, any> = IPlugin<HOST, any>>(ParentClass: P): {
|
|
13
13
|
new (...args: any): {
|
|
14
|
-
[x: string]: any;
|
|
15
14
|
get pluginManager(): PluginManager<any, IPlugin<any, any>>;
|
|
16
15
|
use<P_1 extends Plugin>(plugin: P_1, ...options: FormatUsePluginParameters<P_1>): PluginCreatedReturnType<P_1> | void;
|
|
17
|
-
destroyThis():
|
|
16
|
+
destroyThis(): void;
|
|
17
|
+
readonly isDestroyed: boolean;
|
|
18
|
+
_isDestroyed: boolean;
|
|
19
|
+
_destroyers: import("@gby/destroyable").FunDestroyer[];
|
|
20
|
+
disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
21
|
+
cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
22
|
+
disposeObj<T extends unknown>(obj: T, sync?: boolean): T;
|
|
23
|
+
cancelDisposeObj<T extends unknown>(obj: T): T;
|
|
24
|
+
dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
25
|
+
dispose<T extends unknown>(obj: T, asyncDestroy?: boolean): T;
|
|
26
|
+
dispose<T extends unknown>(objOrFun: T, asyncDestroy?: boolean): T;
|
|
27
|
+
cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
28
|
+
cancelDispose<T extends unknown>(obj: T): T;
|
|
29
|
+
cancelDispose<T extends unknown>(objOrFun: T): T;
|
|
30
|
+
destroy(): true | undefined;
|
|
31
|
+
destroyAsync(): Promise<true | undefined>;
|
|
32
|
+
constructor: Function;
|
|
33
|
+
toString: (() => string) & (() => string);
|
|
34
|
+
toLocaleString: (() => string) & (() => string);
|
|
35
|
+
valueOf: (() => Object) & (() => Object);
|
|
36
|
+
hasOwnProperty: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean);
|
|
37
|
+
isPrototypeOf: ((v: Object) => boolean) & ((v: Object) => boolean);
|
|
38
|
+
propertyIsEnumerable: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean);
|
|
18
39
|
};
|
|
19
40
|
get pluginManager(): PluginManager<typeof PluginHost & HOST & (new (...args: any) => {
|
|
20
|
-
[x: string]: any;
|
|
21
41
|
readonly isDestroyed: boolean;
|
|
22
42
|
_isDestroyed: boolean;
|
|
23
43
|
_destroyers: import("@gby/destroyable").FunDestroyer[];
|
|
@@ -34,9 +54,15 @@ export declare function createPluginHost<HOST, P extends new (...args: any) => a
|
|
|
34
54
|
destroyThis(): void;
|
|
35
55
|
destroy(): true | undefined;
|
|
36
56
|
destroyAsync(): Promise<true | undefined>;
|
|
57
|
+
constructor: Function;
|
|
58
|
+
toString(): string;
|
|
59
|
+
toLocaleString(): string;
|
|
60
|
+
valueOf(): Object;
|
|
61
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
62
|
+
isPrototypeOf(v: Object): boolean;
|
|
63
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
37
64
|
}) & P, Plugin>;
|
|
38
65
|
_pluginManager: PluginManager<typeof PluginHost & HOST & (new (...args: any) => {
|
|
39
|
-
[x: string]: any;
|
|
40
66
|
readonly isDestroyed: boolean;
|
|
41
67
|
_isDestroyed: boolean;
|
|
42
68
|
_destroyers: import("@gby/destroyable").FunDestroyer[];
|
|
@@ -53,6 +79,13 @@ export declare function createPluginHost<HOST, P extends new (...args: any) => a
|
|
|
53
79
|
destroyThis(): void;
|
|
54
80
|
destroy(): true | undefined;
|
|
55
81
|
destroyAsync(): Promise<true | undefined>;
|
|
82
|
+
constructor: Function;
|
|
83
|
+
toString(): string;
|
|
84
|
+
toLocaleString(): string;
|
|
85
|
+
valueOf(): Object;
|
|
86
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
87
|
+
isPrototypeOf(v: Object): boolean;
|
|
88
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
56
89
|
}) & P, Plugin>;
|
|
57
90
|
use<P_1 extends Plugin>(plugin: P_1, ...options: FormatUsePluginParameters<P_1>): void | ReturnType<P_1["used"]>;
|
|
58
91
|
} & P;
|
|
@@ -94,7 +127,7 @@ P
|
|
|
94
127
|
|
|
95
128
|
**Returns:**
|
|
96
129
|
|
|
97
|
-
{ new (...args: any): {
|
|
130
|
+
{ new (...args: any): { get pluginManager(): [PluginManager](./plugin-tls.pluginmanager.md)<!-- --><any, [IPlugin](./plugin-tls.iplugin.md)<!-- --><any, any>>; use<P\_1 extends Plugin>(plugin: P\_1, ...options: [FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- --><P\_1>): [PluginCreatedReturnType](./plugin-tls.plugincreatedreturntype.md)<!-- --><P\_1> \| void; destroyThis(): void; readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; disposeObj<T extends unknown>(obj: T, sync?: boolean): T; cancelDisposeObj<T extends unknown>(obj: T): T; dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; dispose<T extends unknown>(obj: T, asyncDestroy?: boolean): T; dispose<T extends unknown>(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDispose<T extends unknown>(obj: T): T; cancelDispose<T extends unknown>(objOrFun: T): T; destroy(): true \| undefined; destroyAsync(): Promise<true \| undefined>; constructor: Function; toString: (() => string) & (() => string); toLocaleString: (() => string) & (() => string); valueOf: (() => Object) & (() => Object); hasOwnProperty: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean); isPrototypeOf: ((v: Object) => boolean) & ((v: Object) => boolean); propertyIsEnumerable: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean); }; get pluginManager(): [PluginManager](./plugin-tls.pluginmanager.md)<!-- --><typeof [PluginHost](./plugin-tls.pluginhost.md) & HOST & (new (...args: any) => { readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; disposeObj<T extends any>(obj: T, sync?: boolean): T; cancelDisposeObj<T extends any>(obj: T): T; dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; dispose<T extends any>(obj: T, asyncDestroy?: boolean): T; dispose<T extends any \| import("@gby/destroyable").FunDestroyer>(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDispose<T extends any>(obj: T): T; cancelDispose<T extends any \| import("@gby/destroyable").FunDestroyer>(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise<true \| undefined>; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: PropertyKey): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: PropertyKey): boolean; }) & P, Plugin>; \_pluginManager: [PluginManager](./plugin-tls.pluginmanager.md)<!-- --><typeof [PluginHost](./plugin-tls.pluginhost.md) & HOST & (new (...args: any) => { readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; disposeObj<T extends any>(obj: T, sync?: boolean): T; cancelDisposeObj<T extends any>(obj: T): T; dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; dispose<T extends any>(obj: T, asyncDestroy?: boolean): T; dispose<T extends any \| import("@gby/destroyable").FunDestroyer>(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDispose<T extends any>(obj: T): T; cancelDispose<T extends any \| import("@gby/destroyable").FunDestroyer>(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise<true \| undefined>; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: PropertyKey): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: PropertyKey): boolean; }) & P, Plugin>; use<P\_1 extends Plugin>(plugin: P\_1, ...options: [FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- --><P\_1>): void \| ReturnType<P\_1\["used"\]>; } & P
|
|
98
131
|
|
|
99
132
|
|
|
100
133
|
## Remarks
|
|
@@ -9,18 +9,41 @@
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
export declare function createTierModeOptionsPluginHost<HOST, P extends new (...args: any) =>
|
|
12
|
+
export declare function createTierModeOptionsPluginHost<HOST, P extends new (...args: any) => Object, Options extends {}, Mode extends string | number = string>(ParentClass: P): {
|
|
13
13
|
new (options: Options): {
|
|
14
|
-
[x: string]: any;
|
|
15
14
|
get modeOptions(): TierModeOptions<Mode, Options>;
|
|
16
15
|
_modeOptions: TierModeOptions<Mode, Options>;
|
|
17
16
|
get mode(): Mode;
|
|
18
17
|
set mode(value: Mode);
|
|
19
18
|
get options(): Options;
|
|
19
|
+
get pluginManager(): import("..").PluginManager<any, import("..").IPlugin<any, any>>;
|
|
20
|
+
use<P_1 extends import("..").IPlugin<HOST, any>>(plugin: P_1, ...options: import("..").FormatUsePluginParameters<P_1>): void | import("..").PluginCreatedReturnType<P_1>;
|
|
21
|
+
destroyThis(): void;
|
|
22
|
+
readonly isDestroyed: boolean;
|
|
23
|
+
_isDestroyed: boolean;
|
|
24
|
+
_destroyers: import("@gby/destroyable").FunDestroyer[];
|
|
25
|
+
disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
26
|
+
cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
27
|
+
disposeObj<T extends unknown>(obj: T, sync?: boolean): T;
|
|
28
|
+
cancelDisposeObj<T extends unknown>(obj: T): T;
|
|
29
|
+
dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
30
|
+
dispose<T extends unknown>(obj: T, asyncDestroy?: boolean): T;
|
|
31
|
+
dispose<T extends unknown>(objOrFun: T, asyncDestroy?: boolean): T;
|
|
32
|
+
cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
33
|
+
cancelDispose<T extends unknown>(obj: T): T;
|
|
34
|
+
cancelDispose<T extends unknown>(objOrFun: T): T;
|
|
35
|
+
destroy(): true | undefined;
|
|
36
|
+
destroyAsync(): Promise<true | undefined>;
|
|
37
|
+
constructor: Function;
|
|
38
|
+
toString: (() => string) & (() => string);
|
|
39
|
+
toLocaleString: (() => string) & (() => string);
|
|
40
|
+
valueOf: (() => Object) & (() => Object);
|
|
41
|
+
hasOwnProperty: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean);
|
|
42
|
+
isPrototypeOf: ((v: Object) => boolean) & ((v: Object) => boolean);
|
|
43
|
+
propertyIsEnumerable: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean);
|
|
20
44
|
};
|
|
21
45
|
readonly modeOptions: TierModeOptions<string, Options>;
|
|
22
46
|
get pluginManager(): import("..").PluginManager<typeof import("./PluginHost").PluginHost & HOST & (new (...args: any) => {
|
|
23
|
-
[x: string]: any;
|
|
24
47
|
readonly isDestroyed: boolean;
|
|
25
48
|
_isDestroyed: boolean;
|
|
26
49
|
_destroyers: import("@gby/destroyable").FunDestroyer[];
|
|
@@ -37,9 +60,15 @@ export declare function createTierModeOptionsPluginHost<HOST, P extends new (...
|
|
|
37
60
|
destroyThis(): void;
|
|
38
61
|
destroy(): true | undefined;
|
|
39
62
|
destroyAsync(): Promise<true | undefined>;
|
|
63
|
+
constructor: Function;
|
|
64
|
+
toString(): string;
|
|
65
|
+
toLocaleString(): string;
|
|
66
|
+
valueOf(): Object;
|
|
67
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
68
|
+
isPrototypeOf(v: Object): boolean;
|
|
69
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
40
70
|
}) & P, import("..").IPlugin<HOST, any>>;
|
|
41
71
|
_pluginManager: import("..").PluginManager<typeof import("./PluginHost").PluginHost & HOST & (new (...args: any) => {
|
|
42
|
-
[x: string]: any;
|
|
43
72
|
readonly isDestroyed: boolean;
|
|
44
73
|
_isDestroyed: boolean;
|
|
45
74
|
_destroyers: import("@gby/destroyable").FunDestroyer[];
|
|
@@ -56,6 +85,13 @@ export declare function createTierModeOptionsPluginHost<HOST, P extends new (...
|
|
|
56
85
|
destroyThis(): void;
|
|
57
86
|
destroy(): true | undefined;
|
|
58
87
|
destroyAsync(): Promise<true | undefined>;
|
|
88
|
+
constructor: Function;
|
|
89
|
+
toString(): string;
|
|
90
|
+
toLocaleString(): string;
|
|
91
|
+
valueOf(): Object;
|
|
92
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
93
|
+
isPrototypeOf(v: Object): boolean;
|
|
94
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
59
95
|
}) & P, import("..").IPlugin<HOST, any>>;
|
|
60
96
|
use<P_1 extends import("..").IPlugin<HOST, any>>(plugin: P_1, ...options: import("..").FormatUsePluginParameters<P_1>): void | ReturnType<P_1["used"]>;
|
|
61
97
|
} & P;
|
|
@@ -97,6 +133,6 @@ P
|
|
|
97
133
|
|
|
98
134
|
**Returns:**
|
|
99
135
|
|
|
100
|
-
{ new (options: Options): {
|
|
136
|
+
{ new (options: Options): { get modeOptions(): [TierModeOptions](./plugin-tls.tiermodeoptions.md)<!-- --><Mode, Options>; \_modeOptions: [TierModeOptions](./plugin-tls.tiermodeoptions.md)<!-- --><Mode, Options>; get mode(): Mode; set mode(value: Mode); get options(): Options; get pluginManager(): import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- --><any, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- --><any, any>>; use<P\_1 extends import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- --><HOST, any>>(plugin: P\_1, ...options: import("..").[FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- --><P\_1>): void \| import("..").[PluginCreatedReturnType](./plugin-tls.plugincreatedreturntype.md)<!-- --><P\_1>; destroyThis(): void; readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; disposeObj<T extends unknown>(obj: T, sync?: boolean): T; cancelDisposeObj<T extends unknown>(obj: T): T; dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; dispose<T extends unknown>(obj: T, asyncDestroy?: boolean): T; dispose<T extends unknown>(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDispose<T extends unknown>(obj: T): T; cancelDispose<T extends unknown>(objOrFun: T): T; destroy(): true \| undefined; destroyAsync(): Promise<true \| undefined>; constructor: Function; toString: (() => string) & (() => string); toLocaleString: (() => string) & (() => string); valueOf: (() => Object) & (() => Object); hasOwnProperty: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean); isPrototypeOf: ((v: Object) => boolean) & ((v: Object) => boolean); propertyIsEnumerable: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean); }; readonly modeOptions: [TierModeOptions](./plugin-tls.tiermodeoptions.md)<!-- --><string, Options>; get pluginManager(): import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- --><typeof import("./PluginHost").[PluginHost](./plugin-tls.pluginhost.md) & HOST & (new (...args: any) => { readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; disposeObj<T extends any>(obj: T, sync?: boolean): T; cancelDisposeObj<T extends any>(obj: T): T; dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; dispose<T extends any>(obj: T, asyncDestroy?: boolean): T; dispose<T extends any \| import("@gby/destroyable").FunDestroyer>(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDispose<T extends any>(obj: T): T; cancelDispose<T extends any \| import("@gby/destroyable").FunDestroyer>(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise<true \| undefined>; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: PropertyKey): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: PropertyKey): boolean; }) & P, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- --><HOST, any>>; \_pluginManager: import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- --><typeof import("./PluginHost").[PluginHost](./plugin-tls.pluginhost.md) & HOST & (new (...args: any) => { readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; disposeObj<T extends any>(obj: T, sync?: boolean): T; cancelDisposeObj<T extends any>(obj: T): T; dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; dispose<T extends any>(obj: T, asyncDestroy?: boolean): T; dispose<T extends any \| import("@gby/destroyable").FunDestroyer>(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDispose<T extends any>(obj: T): T; cancelDispose<T extends any \| import("@gby/destroyable").FunDestroyer>(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise<true \| undefined>; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: PropertyKey): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: PropertyKey): boolean; }) & P, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- --><HOST, any>>; use<P\_1 extends import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- --><HOST, any>>(plugin: P\_1, ...options: import("..").[FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- --><P\_1>): void \| ReturnType<P\_1\["used"\]>; } & P
|
|
101
137
|
|
|
102
138
|
|
|
@@ -9,15 +9,38 @@
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
export declare function createTierOptionsPluginHost<HOST, P extends new (...args: any) =>
|
|
12
|
+
export declare function createTierOptionsPluginHost<HOST, P extends new (...args: any) => Object, Options extends {}>(ParentClass: P): {
|
|
13
13
|
new (options: Options): {
|
|
14
|
-
[x: string]: any;
|
|
15
14
|
get defaultOptions(): TierOptions<Options>;
|
|
16
15
|
_defaultOptions: TierOptions<Options>;
|
|
16
|
+
get pluginManager(): import("..").PluginManager<any, import("..").IPlugin<any, any>>;
|
|
17
|
+
use<P_1 extends import("..").IPlugin<HOST, any>>(plugin: P_1, ...options: import("..").FormatUsePluginParameters<P_1>): void | import("..").PluginCreatedReturnType<P_1>;
|
|
18
|
+
destroyThis(): void;
|
|
19
|
+
readonly isDestroyed: boolean;
|
|
20
|
+
_isDestroyed: boolean;
|
|
21
|
+
_destroyers: import("@gby/destroyable").FunDestroyer[];
|
|
22
|
+
disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
23
|
+
cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
24
|
+
disposeObj<T extends unknown>(obj: T, sync?: boolean): T;
|
|
25
|
+
cancelDisposeObj<T extends unknown>(obj: T): T;
|
|
26
|
+
dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
27
|
+
dispose<T extends unknown>(obj: T, asyncDestroy?: boolean): T;
|
|
28
|
+
dispose<T extends unknown>(objOrFun: T, asyncDestroy?: boolean): T;
|
|
29
|
+
cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T;
|
|
30
|
+
cancelDispose<T extends unknown>(obj: T): T;
|
|
31
|
+
cancelDispose<T extends unknown>(objOrFun: T): T;
|
|
32
|
+
destroy(): true | undefined;
|
|
33
|
+
destroyAsync(): Promise<true | undefined>;
|
|
34
|
+
constructor: Function;
|
|
35
|
+
toString: (() => string) & (() => string);
|
|
36
|
+
toLocaleString: (() => string) & (() => string);
|
|
37
|
+
valueOf: (() => Object) & (() => Object);
|
|
38
|
+
hasOwnProperty: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean);
|
|
39
|
+
isPrototypeOf: ((v: Object) => boolean) & ((v: Object) => boolean);
|
|
40
|
+
propertyIsEnumerable: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean);
|
|
17
41
|
};
|
|
18
42
|
readonly defaultOptions: TierOptions<Options>;
|
|
19
43
|
get pluginManager(): import("..").PluginManager<typeof import("./PluginHost").PluginHost & HOST & (new (...args: any) => {
|
|
20
|
-
[x: string]: any;
|
|
21
44
|
readonly isDestroyed: boolean;
|
|
22
45
|
_isDestroyed: boolean;
|
|
23
46
|
_destroyers: import("@gby/destroyable").FunDestroyer[];
|
|
@@ -34,9 +57,15 @@ export declare function createTierOptionsPluginHost<HOST, P extends new (...args
|
|
|
34
57
|
destroyThis(): void;
|
|
35
58
|
destroy(): true | undefined;
|
|
36
59
|
destroyAsync(): Promise<true | undefined>;
|
|
60
|
+
constructor: Function;
|
|
61
|
+
toString(): string;
|
|
62
|
+
toLocaleString(): string;
|
|
63
|
+
valueOf(): Object;
|
|
64
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
65
|
+
isPrototypeOf(v: Object): boolean;
|
|
66
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
37
67
|
}) & P, import("..").IPlugin<HOST, any>>;
|
|
38
68
|
_pluginManager: import("..").PluginManager<typeof import("./PluginHost").PluginHost & HOST & (new (...args: any) => {
|
|
39
|
-
[x: string]: any;
|
|
40
69
|
readonly isDestroyed: boolean;
|
|
41
70
|
_isDestroyed: boolean;
|
|
42
71
|
_destroyers: import("@gby/destroyable").FunDestroyer[];
|
|
@@ -53,6 +82,13 @@ export declare function createTierOptionsPluginHost<HOST, P extends new (...args
|
|
|
53
82
|
destroyThis(): void;
|
|
54
83
|
destroy(): true | undefined;
|
|
55
84
|
destroyAsync(): Promise<true | undefined>;
|
|
85
|
+
constructor: Function;
|
|
86
|
+
toString(): string;
|
|
87
|
+
toLocaleString(): string;
|
|
88
|
+
valueOf(): Object;
|
|
89
|
+
hasOwnProperty(v: PropertyKey): boolean;
|
|
90
|
+
isPrototypeOf(v: Object): boolean;
|
|
91
|
+
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
56
92
|
}) & P, import("..").IPlugin<HOST, any>>;
|
|
57
93
|
use<P_1 extends import("..").IPlugin<HOST, any>>(plugin: P_1, ...options: import("..").FormatUsePluginParameters<P_1>): void | ReturnType<P_1["used"]>;
|
|
58
94
|
} & P;
|
|
@@ -94,6 +130,6 @@ P
|
|
|
94
130
|
|
|
95
131
|
**Returns:**
|
|
96
132
|
|
|
97
|
-
{ new (options: Options): {
|
|
133
|
+
{ new (options: Options): { get defaultOptions(): [TierOptions](./plugin-tls.tieroptions.md)<!-- --><Options>; \_defaultOptions: [TierOptions](./plugin-tls.tieroptions.md)<!-- --><Options>; get pluginManager(): import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- --><any, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- --><any, any>>; use<P\_1 extends import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- --><HOST, any>>(plugin: P\_1, ...options: import("..").[FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- --><P\_1>): void \| import("..").[PluginCreatedReturnType](./plugin-tls.plugincreatedreturntype.md)<!-- --><P\_1>; destroyThis(): void; readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; disposeObj<T extends unknown>(obj: T, sync?: boolean): T; cancelDisposeObj<T extends unknown>(obj: T): T; dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; dispose<T extends unknown>(obj: T, asyncDestroy?: boolean): T; dispose<T extends unknown>(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDispose<T extends unknown>(obj: T): T; cancelDispose<T extends unknown>(objOrFun: T): T; destroy(): true \| undefined; destroyAsync(): Promise<true \| undefined>; constructor: Function; toString: (() => string) & (() => string); toLocaleString: (() => string) & (() => string); valueOf: (() => Object) & (() => Object); hasOwnProperty: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean); isPrototypeOf: ((v: Object) => boolean) & ((v: Object) => boolean); propertyIsEnumerable: ((v: PropertyKey) => boolean) & ((v: PropertyKey) => boolean); }; readonly defaultOptions: [TierOptions](./plugin-tls.tieroptions.md)<!-- --><Options>; get pluginManager(): import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- --><typeof import("./PluginHost").[PluginHost](./plugin-tls.pluginhost.md) & HOST & (new (...args: any) => { readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; disposeObj<T extends any>(obj: T, sync?: boolean): T; cancelDisposeObj<T extends any>(obj: T): T; dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; dispose<T extends any>(obj: T, asyncDestroy?: boolean): T; dispose<T extends any \| import("@gby/destroyable").FunDestroyer>(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDispose<T extends any>(obj: T): T; cancelDispose<T extends any \| import("@gby/destroyable").FunDestroyer>(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise<true \| undefined>; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: PropertyKey): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: PropertyKey): boolean; }) & P, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- --><HOST, any>>; \_pluginManager: import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- --><typeof import("./PluginHost").[PluginHost](./plugin-tls.pluginhost.md) & HOST & (new (...args: any) => { readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDisposeFun<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; disposeObj<T extends any>(obj: T, sync?: boolean): T; cancelDisposeObj<T extends any>(obj: T): T; dispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; dispose<T extends any>(obj: T, asyncDestroy?: boolean): T; dispose<T extends any \| import("@gby/destroyable").FunDestroyer>(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose<T extends import("@gby/destroyable").FunDestroyer>(fun: T): T; cancelDispose<T extends any>(obj: T): T; cancelDispose<T extends any \| import("@gby/destroyable").FunDestroyer>(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise<true \| undefined>; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: PropertyKey): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: PropertyKey): boolean; }) & P, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- --><HOST, any>>; use<P\_1 extends import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- --><HOST, any>>(plugin: P\_1, ...options: import("..").[FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- --><P\_1>): void \| ReturnType<P\_1\["used"\]>; } & P
|
|
98
134
|
|
|
99
135
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
export interface PrivateMemberOfExtendWithInit<TargetType extends new (...args: any) =>
|
|
12
|
+
export interface PrivateMemberOfExtendWithInit<TargetType extends new (...args: any) => Object, InitParams extends any[] = any> extends PrivateMemberOfExtend<TargetType>
|
|
13
13
|
```
|
|
14
14
|
**Extends:** [PrivateMemberOfExtend](./plugin-tls.privatememberofextend.md)<!-- --><TargetType>
|
|
15
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "plugin-tls",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "plugin-tls 是插件系统相应的工具,可快速地让任何模块具备插件机制",
|
|
5
5
|
"main": "./dist/index.umd.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"vite-node": "latest"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@gby/destroyable": "^
|
|
55
|
+
"@gby/destroyable": "^3.4.1",
|
|
56
56
|
"deepmerge-ts": "^7.1.5",
|
|
57
|
-
"type-tls": "^3.
|
|
57
|
+
"type-tls": "^3.9.0"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"serve": "vite",
|