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.
Files changed (99) hide show
  1. package/dist/extend/extend.d.ts +11 -19
  2. package/dist/extend/extend.d.ts.map +1 -1
  3. package/dist/extend/index.d.ts +3 -0
  4. package/dist/extend/index.d.ts.map +1 -0
  5. package/dist/extend/mixin.d.ts.map +1 -1
  6. package/dist/index.d.ts +6 -12
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +586 -263
  9. package/dist/index.umd.cjs +1 -1
  10. package/dist/options-manager/defaultOptions.d.ts +2 -2
  11. package/dist/options-manager/defaultOptions.d.ts.map +1 -1
  12. package/dist/options-manager/index.d.ts +6 -0
  13. package/dist/options-manager/index.d.ts.map +1 -0
  14. package/dist/options-plugin-host/index.d.ts +3 -0
  15. package/dist/options-plugin-host/index.d.ts.map +1 -0
  16. package/dist/options-plugin-host/tier-mode-options/TierModeOptionsPluginHost.d.ts +28 -0
  17. package/dist/options-plugin-host/tier-mode-options/TierModeOptionsPluginHost.d.ts.map +1 -0
  18. package/dist/options-plugin-host/tier-mode-options/TierModeOptionsPluginHostEventEmitter.d.ts +29 -0
  19. package/dist/options-plugin-host/tier-mode-options/TierModeOptionsPluginHostEventEmitter.d.ts.map +1 -0
  20. package/dist/options-plugin-host/tier-mode-options/TierModeOptionsPluginHostEventTarget.d.ts +28 -0
  21. package/dist/options-plugin-host/tier-mode-options/TierModeOptionsPluginHostEventTarget.d.ts.map +1 -0
  22. package/dist/options-plugin-host/tier-mode-options/createTierModeOptionsPluginHost.d.ts +58 -0
  23. package/dist/options-plugin-host/tier-mode-options/createTierModeOptionsPluginHost.d.ts.map +1 -0
  24. package/dist/options-plugin-host/tier-mode-options/index.d.ts +6 -0
  25. package/dist/options-plugin-host/tier-mode-options/index.d.ts.map +1 -0
  26. package/dist/options-plugin-host/tier-mode-options/type.d.ts +7 -0
  27. package/dist/options-plugin-host/tier-mode-options/type.d.ts.map +1 -0
  28. package/dist/options-plugin-host/tier-options/TierOptionsPluginHost.d.ts +25 -0
  29. package/dist/options-plugin-host/tier-options/TierOptionsPluginHost.d.ts.map +1 -0
  30. package/dist/options-plugin-host/tier-options/TierOptionsPluginHostEventEmitter.d.ts +26 -0
  31. package/dist/options-plugin-host/tier-options/TierOptionsPluginHostEventEmitter.d.ts.map +1 -0
  32. package/dist/options-plugin-host/tier-options/TierOptionsPluginHostEventTarget.d.ts +25 -0
  33. package/dist/options-plugin-host/tier-options/TierOptionsPluginHostEventTarget.d.ts.map +1 -0
  34. package/dist/options-plugin-host/tier-options/createTierOptionsPluginHost.d.ts +55 -0
  35. package/dist/options-plugin-host/tier-options/createTierOptionsPluginHost.d.ts.map +1 -0
  36. package/dist/options-plugin-host/tier-options/index.d.ts +5 -0
  37. package/dist/options-plugin-host/tier-options/index.d.ts.map +1 -0
  38. package/dist/plugin-host/PluginHost.d.ts +41 -187
  39. package/dist/plugin-host/PluginHost.d.ts.map +1 -1
  40. package/dist/plugin-host/PluginHostEventEmitter.d.ts +64 -0
  41. package/dist/plugin-host/PluginHostEventEmitter.d.ts.map +1 -0
  42. package/dist/plugin-host/PluginHostEventTarget.d.ts +62 -0
  43. package/dist/plugin-host/PluginHostEventTarget.d.ts.map +1 -0
  44. package/dist/plugin-host/createPluginHost.d.ts +87 -0
  45. package/dist/plugin-host/createPluginHost.d.ts.map +1 -0
  46. package/dist/plugin-host/decorator.d.ts +177 -0
  47. package/dist/plugin-host/decorator.d.ts.map +1 -0
  48. package/dist/plugin-host/index.d.ts +7 -0
  49. package/dist/plugin-host/index.d.ts.map +1 -0
  50. package/dist/plugin-host/type.d.ts +52 -0
  51. package/dist/plugin-host/type.d.ts.map +1 -0
  52. package/dist/plugin-manager/IPlugin.d.ts +47 -0
  53. package/dist/plugin-manager/IPlugin.d.ts.map +1 -0
  54. package/dist/plugin-manager/PluginManager.d.ts +27 -80
  55. package/dist/plugin-manager/PluginManager.d.ts.map +1 -1
  56. package/dist/plugin-manager/index.d.ts +3 -0
  57. package/dist/plugin-manager/index.d.ts.map +1 -0
  58. package/dist/plugins/index.d.ts +3 -0
  59. package/dist/plugins/index.d.ts.map +1 -0
  60. package/dist/plugins/tier-mode-options/decorator.d.ts +14 -0
  61. package/dist/plugins/tier-mode-options/decorator.d.ts.map +1 -0
  62. package/dist/plugins/tier-mode-options/plugin.d.ts +3 -0
  63. package/dist/plugins/tier-mode-options/plugin.d.ts.map +1 -0
  64. package/dist/plugins/tier-mode-options/type.d.ts +35 -0
  65. package/dist/plugins/tier-mode-options/type.d.ts.map +1 -0
  66. package/dist/plugins/tier-mode-options-plugin.d.ts +4 -0
  67. package/dist/plugins/tier-mode-options-plugin.d.ts.map +1 -0
  68. package/dist/plugins/tier-options/decorator.d.ts +14 -0
  69. package/dist/plugins/tier-options/decorator.d.ts.map +1 -0
  70. package/dist/plugins/tier-options/plugin.d.ts +11 -0
  71. package/dist/plugins/tier-options/plugin.d.ts.map +1 -0
  72. package/dist/plugins/tier-options/type.d.ts +36 -0
  73. package/dist/plugins/tier-options/type.d.ts.map +1 -0
  74. package/dist/plugins/tier-options-plugin.d.ts +4 -0
  75. package/dist/plugins/tier-options-plugin.d.ts.map +1 -0
  76. package/doc/api/plugin-tls.adddefaultoptions.md +2 -2
  77. package/doc/api/plugin-tls.addinstoptions.md +1 -1
  78. package/doc/api/plugin-tls.becomepluginhost.md +1 -1
  79. package/doc/api/plugin-tls.becomepluginhost_extends.md +9 -3
  80. package/doc/api/plugin-tls.becomepluginhost_proxy.md +1 -1
  81. package/doc/api/plugin-tls.becometiermodeoptionshost.md +1 -1
  82. package/doc/api/plugin-tls.becometieroptionshost.md +1 -1
  83. package/doc/api/plugin-tls.classextender.md +1 -1
  84. package/doc/api/plugin-tls.classextenderprivatemember.md +1 -1
  85. package/doc/api/plugin-tls.classextenderprivatememberwithinit.md +1 -1
  86. package/doc/api/plugin-tls.classextenderwithinit.md +1 -1
  87. package/doc/api/plugin-tls.createpluginhost.md +39 -6
  88. package/doc/api/plugin-tls.createtiermodeoptionspluginhost.md +41 -5
  89. package/doc/api/plugin-tls.createtieroptionspluginhost.md +41 -5
  90. package/doc/api/plugin-tls.hostinst.md +1 -1
  91. package/doc/api/plugin-tls.privatememberofextend.md +1 -1
  92. package/doc/api/plugin-tls.privatememberofextendwithinit.md +1 -1
  93. package/package.json +3 -3
  94. package/dist/plugin-host/TierModeOptionsPluginHost.d.ts +0 -131
  95. package/dist/plugin-host/TierModeOptionsPluginHost.d.ts.map +0 -1
  96. package/dist/plugin-host/TierOptionsPluginHost.d.ts +0 -117
  97. package/dist/plugin-host/TierOptionsPluginHost.d.ts.map +0 -1
  98. package/dist/plugin-manager/PluginManagerWithInit.d.ts +0 -36
  99. 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) => any>(target: Clas) => void;
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
- &lt;Clas extends new (...args: any) =&gt; any&gt;(target: Clas) =&gt; void
69
+ &lt;Clas extends new (...args: any) =&gt; Object&gt;(target: Clas) =&gt; 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) => any>(target: Clas, propertyKey: string, descriptor: PropertyDescriptor): PropertyDescriptor;
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) => any, 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>>>;
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) => any>(target: HOST): {
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): { \[x: string\]: any; get pluginManager(): [PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;/\*elided\*/ any &amp; HOST, [IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;/\*elided\*/ any &amp; HOST, any&gt;&gt;; use&lt;Plugin extends [IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;/\*elided\*/ any &amp; HOST, any&gt;&gt;(plugin: Plugin, ...options: [FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- -->&lt;Plugin&gt;): void \| [PluginCreatedReturnType](./plugin-tls.plugincreatedreturntype.md)<!-- -->&lt;Plugin&gt;; destroy(): void; }; get pluginManager(): [PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;/\*elided\*/ any &amp; HOST, [IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;/\*elided\*/ any &amp; HOST, any&gt;&gt;; \_pluginManager: [PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;/\*elided\*/ any &amp; HOST&gt;; use&lt;Plugin extends [IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;/\*elided\*/ any &amp; HOST, any&gt;&gt;(plugin: Plugin, ...options: [FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- -->&lt;Plugin&gt;): void \| ReturnType&lt;Plugin\["used"\]&gt;; } &amp; HOST
67
+ { new (...args: any): { get pluginManager(): [PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;/\*elided\*/ any &amp; HOST, [IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;/\*elided\*/ any &amp; HOST, any&gt;&gt;; use&lt;Plugin extends [IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;/\*elided\*/ any &amp; HOST, any&gt;&gt;(plugin: Plugin, ...options: [FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- -->&lt;Plugin&gt;): void \| [PluginCreatedReturnType](./plugin-tls.plugincreatedreturntype.md)<!-- -->&lt;Plugin&gt;; 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)<!-- -->&lt;/\*elided\*/ any &amp; HOST, [IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;/\*elided\*/ any &amp; HOST, any&gt;&gt;; \_pluginManager: [PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;/\*elided\*/ any &amp; HOST&gt;; use&lt;Plugin extends [IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;/\*elided\*/ any &amp; HOST, any&gt;&gt;(plugin: Plugin, ...options: [FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- -->&lt;Plugin&gt;): void \| ReturnType&lt;Plugin\["used"\]&gt;; } &amp; 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) => any, Plugin extends IPlugin<HOST, any> = IPlugin<HOST, any>>(target: HOST): HOST;
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) => any, Options extends {} = any, Mode extends string | number = string> = HOST & ITierModeOptionsHostConstructor<Options, Mode> & ReplaceConstructorReturn<HOST, InstanceType<HOST> & ITierModeOptionsHost<Options, Mode>>;
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) => any, Options extends {} = any> = HOST & ITierOptionsHostConstructor<Options> & ReplaceConstructorReturn<HOST, InstanceType<HOST> & ITierOptionsHost<Options>>;
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) => any> = C & ClassExtenderPrivateMember<C>;
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 ClassExtenderPrivateMember<C extends new (...args: any) => any>
12
+ export interface ClassExtenderPrivateMember<C extends new (...args: any) => Object>
13
13
  ```
14
14
 
15
15
  ## Properties
@@ -9,7 +9,7 @@
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- export interface ClassExtenderPrivateMemberWithInit<C extends new (...args: any) => any, InitParams extends any[] = any> extends ClassExtenderPrivateMember<C>
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)<!-- -->&lt;C&gt;
15
15
 
@@ -9,7 +9,7 @@
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- export type ClassExtenderWithInit<C extends new (...args: any) => any, InitParams extends any[] = any> = C & ClassExtenderPrivateMemberWithInit<C, InitParams>;
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) => any, Plugin extends IPlugin<HOST, any> = IPlugin<HOST, any>>(ParentClass: P): {
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(): any;
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): { \[x: string\]: any; get pluginManager(): [PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;any, [IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;any, any&gt;&gt;; use&lt;P\_1 extends Plugin&gt;(plugin: P\_1, ...options: [FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- -->&lt;P\_1&gt;): [PluginCreatedReturnType](./plugin-tls.plugincreatedreturntype.md)<!-- -->&lt;P\_1&gt; \| void; destroyThis(): any; }; get pluginManager(): [PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;typeof [PluginHost](./plugin-tls.pluginhost.md) &amp; HOST &amp; (new (...args: any) =&gt; { \[x: string\]: any; readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDisposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; disposeObj&lt;T extends any&gt;(obj: T, sync?: boolean): T; cancelDisposeObj&lt;T extends any&gt;(obj: T): T; dispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; dispose&lt;T extends any&gt;(obj: T, asyncDestroy?: boolean): T; dispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDispose&lt;T extends any&gt;(obj: T): T; cancelDispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise&lt;true \| undefined&gt;; }) &amp; P, Plugin&gt;; \_pluginManager: [PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;typeof [PluginHost](./plugin-tls.pluginhost.md) &amp; HOST &amp; (new (...args: any) =&gt; { \[x: string\]: any; readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDisposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; disposeObj&lt;T extends any&gt;(obj: T, sync?: boolean): T; cancelDisposeObj&lt;T extends any&gt;(obj: T): T; dispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; dispose&lt;T extends any&gt;(obj: T, asyncDestroy?: boolean): T; dispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDispose&lt;T extends any&gt;(obj: T): T; cancelDispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise&lt;true \| undefined&gt;; }) &amp; P, Plugin&gt;; use&lt;P\_1 extends Plugin&gt;(plugin: P\_1, ...options: [FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- -->&lt;P\_1&gt;): void \| ReturnType&lt;P\_1\["used"\]&gt;; } &amp; P
130
+ { new (...args: any): { get pluginManager(): [PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;any, [IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;any, any&gt;&gt;; use&lt;P\_1 extends Plugin&gt;(plugin: P\_1, ...options: [FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- -->&lt;P\_1&gt;): [PluginCreatedReturnType](./plugin-tls.plugincreatedreturntype.md)<!-- -->&lt;P\_1&gt; \| void; destroyThis(): void; readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDisposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; disposeObj&lt;T extends unknown&gt;(obj: T, sync?: boolean): T; cancelDisposeObj&lt;T extends unknown&gt;(obj: T): T; dispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; dispose&lt;T extends unknown&gt;(obj: T, asyncDestroy?: boolean): T; dispose&lt;T extends unknown&gt;(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDispose&lt;T extends unknown&gt;(obj: T): T; cancelDispose&lt;T extends unknown&gt;(objOrFun: T): T; destroy(): true \| undefined; destroyAsync(): Promise&lt;true \| undefined&gt;; constructor: Function; toString: (() =&gt; string) &amp; (() =&gt; string); toLocaleString: (() =&gt; string) &amp; (() =&gt; string); valueOf: (() =&gt; Object) &amp; (() =&gt; Object); hasOwnProperty: ((v: PropertyKey) =&gt; boolean) &amp; ((v: PropertyKey) =&gt; boolean); isPrototypeOf: ((v: Object) =&gt; boolean) &amp; ((v: Object) =&gt; boolean); propertyIsEnumerable: ((v: PropertyKey) =&gt; boolean) &amp; ((v: PropertyKey) =&gt; boolean); }; get pluginManager(): [PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;typeof [PluginHost](./plugin-tls.pluginhost.md) &amp; HOST &amp; (new (...args: any) =&gt; { readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDisposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; disposeObj&lt;T extends any&gt;(obj: T, sync?: boolean): T; cancelDisposeObj&lt;T extends any&gt;(obj: T): T; dispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; dispose&lt;T extends any&gt;(obj: T, asyncDestroy?: boolean): T; dispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDispose&lt;T extends any&gt;(obj: T): T; cancelDispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise&lt;true \| undefined&gt;; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: PropertyKey): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: PropertyKey): boolean; }) &amp; P, Plugin&gt;; \_pluginManager: [PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;typeof [PluginHost](./plugin-tls.pluginhost.md) &amp; HOST &amp; (new (...args: any) =&gt; { readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDisposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; disposeObj&lt;T extends any&gt;(obj: T, sync?: boolean): T; cancelDisposeObj&lt;T extends any&gt;(obj: T): T; dispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; dispose&lt;T extends any&gt;(obj: T, asyncDestroy?: boolean): T; dispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDispose&lt;T extends any&gt;(obj: T): T; cancelDispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise&lt;true \| undefined&gt;; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: PropertyKey): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: PropertyKey): boolean; }) &amp; P, Plugin&gt;; use&lt;P\_1 extends Plugin&gt;(plugin: P\_1, ...options: [FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- -->&lt;P\_1&gt;): void \| ReturnType&lt;P\_1\["used"\]&gt;; } &amp; 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) => any, Options extends {}, Mode extends string | number = string>(ParentClass: P): {
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): { \[x: string\]: any; get modeOptions(): [TierModeOptions](./plugin-tls.tiermodeoptions.md)<!-- -->&lt;Mode, Options&gt;; \_modeOptions: [TierModeOptions](./plugin-tls.tiermodeoptions.md)<!-- -->&lt;Mode, Options&gt;; get mode(): Mode; set mode(value: Mode); get options(): Options; }; readonly modeOptions: [TierModeOptions](./plugin-tls.tiermodeoptions.md)<!-- -->&lt;string, Options&gt;; get pluginManager(): import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;typeof import("./PluginHost").[PluginHost](./plugin-tls.pluginhost.md) &amp; HOST &amp; (new (...args: any) =&gt; { \[x: string\]: any; readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDisposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; disposeObj&lt;T extends any&gt;(obj: T, sync?: boolean): T; cancelDisposeObj&lt;T extends any&gt;(obj: T): T; dispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; dispose&lt;T extends any&gt;(obj: T, asyncDestroy?: boolean): T; dispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDispose&lt;T extends any&gt;(obj: T): T; cancelDispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise&lt;true \| undefined&gt;; }) &amp; P, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;HOST, any&gt;&gt;; \_pluginManager: import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;typeof import("./PluginHost").[PluginHost](./plugin-tls.pluginhost.md) &amp; HOST &amp; (new (...args: any) =&gt; { \[x: string\]: any; readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDisposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; disposeObj&lt;T extends any&gt;(obj: T, sync?: boolean): T; cancelDisposeObj&lt;T extends any&gt;(obj: T): T; dispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; dispose&lt;T extends any&gt;(obj: T, asyncDestroy?: boolean): T; dispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDispose&lt;T extends any&gt;(obj: T): T; cancelDispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise&lt;true \| undefined&gt;; }) &amp; P, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;HOST, any&gt;&gt;; use&lt;P\_1 extends import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;HOST, any&gt;&gt;(plugin: P\_1, ...options: import("..").[FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- -->&lt;P\_1&gt;): void \| ReturnType&lt;P\_1\["used"\]&gt;; } &amp; P
136
+ { new (options: Options): { get modeOptions(): [TierModeOptions](./plugin-tls.tiermodeoptions.md)<!-- -->&lt;Mode, Options&gt;; \_modeOptions: [TierModeOptions](./plugin-tls.tiermodeoptions.md)<!-- -->&lt;Mode, Options&gt;; get mode(): Mode; set mode(value: Mode); get options(): Options; get pluginManager(): import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;any, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;any, any&gt;&gt;; use&lt;P\_1 extends import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;HOST, any&gt;&gt;(plugin: P\_1, ...options: import("..").[FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- -->&lt;P\_1&gt;): void \| import("..").[PluginCreatedReturnType](./plugin-tls.plugincreatedreturntype.md)<!-- -->&lt;P\_1&gt;; destroyThis(): void; readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDisposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; disposeObj&lt;T extends unknown&gt;(obj: T, sync?: boolean): T; cancelDisposeObj&lt;T extends unknown&gt;(obj: T): T; dispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; dispose&lt;T extends unknown&gt;(obj: T, asyncDestroy?: boolean): T; dispose&lt;T extends unknown&gt;(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDispose&lt;T extends unknown&gt;(obj: T): T; cancelDispose&lt;T extends unknown&gt;(objOrFun: T): T; destroy(): true \| undefined; destroyAsync(): Promise&lt;true \| undefined&gt;; constructor: Function; toString: (() =&gt; string) &amp; (() =&gt; string); toLocaleString: (() =&gt; string) &amp; (() =&gt; string); valueOf: (() =&gt; Object) &amp; (() =&gt; Object); hasOwnProperty: ((v: PropertyKey) =&gt; boolean) &amp; ((v: PropertyKey) =&gt; boolean); isPrototypeOf: ((v: Object) =&gt; boolean) &amp; ((v: Object) =&gt; boolean); propertyIsEnumerable: ((v: PropertyKey) =&gt; boolean) &amp; ((v: PropertyKey) =&gt; boolean); }; readonly modeOptions: [TierModeOptions](./plugin-tls.tiermodeoptions.md)<!-- -->&lt;string, Options&gt;; get pluginManager(): import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;typeof import("./PluginHost").[PluginHost](./plugin-tls.pluginhost.md) &amp; HOST &amp; (new (...args: any) =&gt; { readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDisposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; disposeObj&lt;T extends any&gt;(obj: T, sync?: boolean): T; cancelDisposeObj&lt;T extends any&gt;(obj: T): T; dispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; dispose&lt;T extends any&gt;(obj: T, asyncDestroy?: boolean): T; dispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDispose&lt;T extends any&gt;(obj: T): T; cancelDispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise&lt;true \| undefined&gt;; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: PropertyKey): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: PropertyKey): boolean; }) &amp; P, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;HOST, any&gt;&gt;; \_pluginManager: import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;typeof import("./PluginHost").[PluginHost](./plugin-tls.pluginhost.md) &amp; HOST &amp; (new (...args: any) =&gt; { readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDisposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; disposeObj&lt;T extends any&gt;(obj: T, sync?: boolean): T; cancelDisposeObj&lt;T extends any&gt;(obj: T): T; dispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; dispose&lt;T extends any&gt;(obj: T, asyncDestroy?: boolean): T; dispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDispose&lt;T extends any&gt;(obj: T): T; cancelDispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise&lt;true \| undefined&gt;; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: PropertyKey): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: PropertyKey): boolean; }) &amp; P, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;HOST, any&gt;&gt;; use&lt;P\_1 extends import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;HOST, any&gt;&gt;(plugin: P\_1, ...options: import("..").[FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- -->&lt;P\_1&gt;): void \| ReturnType&lt;P\_1\["used"\]&gt;; } &amp; 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) => any, Options extends {}>(ParentClass: P): {
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): { \[x: string\]: any; get defaultOptions(): [TierOptions](./plugin-tls.tieroptions.md)<!-- -->&lt;Options&gt;; \_defaultOptions: [TierOptions](./plugin-tls.tieroptions.md)<!-- -->&lt;Options&gt;; }; readonly defaultOptions: [TierOptions](./plugin-tls.tieroptions.md)<!-- -->&lt;Options&gt;; get pluginManager(): import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;typeof import("./PluginHost").[PluginHost](./plugin-tls.pluginhost.md) &amp; HOST &amp; (new (...args: any) =&gt; { \[x: string\]: any; readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDisposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; disposeObj&lt;T extends any&gt;(obj: T, sync?: boolean): T; cancelDisposeObj&lt;T extends any&gt;(obj: T): T; dispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; dispose&lt;T extends any&gt;(obj: T, asyncDestroy?: boolean): T; dispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDispose&lt;T extends any&gt;(obj: T): T; cancelDispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise&lt;true \| undefined&gt;; }) &amp; P, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;HOST, any&gt;&gt;; \_pluginManager: import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;typeof import("./PluginHost").[PluginHost](./plugin-tls.pluginhost.md) &amp; HOST &amp; (new (...args: any) =&gt; { \[x: string\]: any; readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDisposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; disposeObj&lt;T extends any&gt;(obj: T, sync?: boolean): T; cancelDisposeObj&lt;T extends any&gt;(obj: T): T; dispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; dispose&lt;T extends any&gt;(obj: T, asyncDestroy?: boolean): T; dispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDispose&lt;T extends any&gt;(obj: T): T; cancelDispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise&lt;true \| undefined&gt;; }) &amp; P, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;HOST, any&gt;&gt;; use&lt;P\_1 extends import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;HOST, any&gt;&gt;(plugin: P\_1, ...options: import("..").[FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- -->&lt;P\_1&gt;): void \| ReturnType&lt;P\_1\["used"\]&gt;; } &amp; P
133
+ { new (options: Options): { get defaultOptions(): [TierOptions](./plugin-tls.tieroptions.md)<!-- -->&lt;Options&gt;; \_defaultOptions: [TierOptions](./plugin-tls.tieroptions.md)<!-- -->&lt;Options&gt;; get pluginManager(): import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;any, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;any, any&gt;&gt;; use&lt;P\_1 extends import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;HOST, any&gt;&gt;(plugin: P\_1, ...options: import("..").[FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- -->&lt;P\_1&gt;): void \| import("..").[PluginCreatedReturnType](./plugin-tls.plugincreatedreturntype.md)<!-- -->&lt;P\_1&gt;; destroyThis(): void; readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDisposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; disposeObj&lt;T extends unknown&gt;(obj: T, sync?: boolean): T; cancelDisposeObj&lt;T extends unknown&gt;(obj: T): T; dispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; dispose&lt;T extends unknown&gt;(obj: T, asyncDestroy?: boolean): T; dispose&lt;T extends unknown&gt;(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDispose&lt;T extends unknown&gt;(obj: T): T; cancelDispose&lt;T extends unknown&gt;(objOrFun: T): T; destroy(): true \| undefined; destroyAsync(): Promise&lt;true \| undefined&gt;; constructor: Function; toString: (() =&gt; string) &amp; (() =&gt; string); toLocaleString: (() =&gt; string) &amp; (() =&gt; string); valueOf: (() =&gt; Object) &amp; (() =&gt; Object); hasOwnProperty: ((v: PropertyKey) =&gt; boolean) &amp; ((v: PropertyKey) =&gt; boolean); isPrototypeOf: ((v: Object) =&gt; boolean) &amp; ((v: Object) =&gt; boolean); propertyIsEnumerable: ((v: PropertyKey) =&gt; boolean) &amp; ((v: PropertyKey) =&gt; boolean); }; readonly defaultOptions: [TierOptions](./plugin-tls.tieroptions.md)<!-- -->&lt;Options&gt;; get pluginManager(): import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;typeof import("./PluginHost").[PluginHost](./plugin-tls.pluginhost.md) &amp; HOST &amp; (new (...args: any) =&gt; { readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDisposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; disposeObj&lt;T extends any&gt;(obj: T, sync?: boolean): T; cancelDisposeObj&lt;T extends any&gt;(obj: T): T; dispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; dispose&lt;T extends any&gt;(obj: T, asyncDestroy?: boolean): T; dispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDispose&lt;T extends any&gt;(obj: T): T; cancelDispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise&lt;true \| undefined&gt;; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: PropertyKey): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: PropertyKey): boolean; }) &amp; P, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;HOST, any&gt;&gt;; \_pluginManager: import("..").[PluginManager](./plugin-tls.pluginmanager.md)<!-- -->&lt;typeof import("./PluginHost").[PluginHost](./plugin-tls.pluginhost.md) &amp; HOST &amp; (new (...args: any) =&gt; { readonly isDestroyed: boolean; \_isDestroyed: boolean; \_destroyers: import("@gby/destroyable").FunDestroyer\[\]; disposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDisposeFun&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; disposeObj&lt;T extends any&gt;(obj: T, sync?: boolean): T; cancelDisposeObj&lt;T extends any&gt;(obj: T): T; dispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; dispose&lt;T extends any&gt;(obj: T, asyncDestroy?: boolean): T; dispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T, asyncDestroy?: boolean): T; cancelDispose&lt;T extends import("@gby/destroyable").FunDestroyer&gt;(fun: T): T; cancelDispose&lt;T extends any&gt;(obj: T): T; cancelDispose&lt;T extends any \| import("@gby/destroyable").FunDestroyer&gt;(objOrFun: T): T; destroyThis(): void; destroy(): true \| undefined; destroyAsync(): Promise&lt;true \| undefined&gt;; constructor: Function; toString(): string; toLocaleString(): string; valueOf(): Object; hasOwnProperty(v: PropertyKey): boolean; isPrototypeOf(v: Object): boolean; propertyIsEnumerable(v: PropertyKey): boolean; }) &amp; P, import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;HOST, any&gt;&gt;; use&lt;P\_1 extends import("..").[IPlugin](./plugin-tls.iplugin.md)<!-- -->&lt;HOST, any&gt;&gt;(plugin: P\_1, ...options: import("..").[FormatUsePluginParameters](./plugin-tls.formatusepluginparameters.md)<!-- -->&lt;P\_1&gt;): void \| ReturnType&lt;P\_1\["used"\]&gt;; } &amp; P
98
134
 
99
135
 
@@ -9,5 +9,5 @@
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- export type HostInst<H> = H extends new (...args: any) => any ? InstanceType<H> : H;
12
+ export type HostInst<H> = H extends new (...args: any) => Object ? InstanceType<H> : H;
13
13
  ```
@@ -9,7 +9,7 @@
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- export interface PrivateMemberOfExtend<TargetType extends new (...args: any) => any>
12
+ export interface PrivateMemberOfExtend<TargetType extends new (...args: any) => Object>
13
13
  ```
14
14
 
15
15
  ## Methods
@@ -9,7 +9,7 @@
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- export interface PrivateMemberOfExtendWithInit<TargetType extends new (...args: any) => any, InitParams extends any[] = any> extends PrivateMemberOfExtend<TargetType>
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)<!-- -->&lt;TargetType&gt;
15
15
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plugin-tls",
3
- "version": "2.0.0",
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": "^1.0.0",
55
+ "@gby/destroyable": "^3.4.1",
56
56
  "deepmerge-ts": "^7.1.5",
57
- "type-tls": "^3.2.2"
57
+ "type-tls": "^3.9.0"
58
58
  },
59
59
  "scripts": {
60
60
  "serve": "vite",