@rws-framework/client 2.9.8 → 2.9.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/package.json +1 -1
- package/src/client/config.ts +3 -3
package/README.md
CHANGED
package/package.json
CHANGED
package/src/client/config.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IRWSConfig, IRWSUser } from "../index";
|
|
1
|
+
import { IRWSConfig, IRWSUser, IStaticRWSPlugin } from "../index";
|
|
2
2
|
import { RWSClientInstance } from "../client";
|
|
3
3
|
|
|
4
4
|
import { RWSPlugin, DefaultRWSPluginOptionsType } from "../plugins/_plugin";
|
|
@@ -73,9 +73,9 @@ function get(this: RWSClientInstance, key: string): any | null
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
type PluginConstructor<T extends DefaultRWSPluginOptionsType> = new (options: T) => RWSPlugin<T>;
|
|
76
|
-
type RWSPluginEntry
|
|
76
|
+
type RWSPluginEntry = IStaticRWSPlugin;
|
|
77
77
|
|
|
78
|
-
function addPlugin<T extends DefaultRWSPluginOptionsType>(this: RWSClientInstance, pluginEntry: RWSPluginEntry
|
|
78
|
+
function addPlugin<T extends DefaultRWSPluginOptionsType>(this: RWSClientInstance, pluginEntry: RWSPluginEntry){
|
|
79
79
|
const rwsWindow: RWSWindow = loadRWSRichWindow();
|
|
80
80
|
const pluginClass: PluginConstructor<T> = (Array.isArray(pluginEntry) ? pluginEntry[0] : pluginEntry) as PluginConstructor<T>;
|
|
81
81
|
const pluginOptions: T = (Array.isArray(pluginEntry) ? pluginEntry[1] : { enabled: true }) as T;
|