@crowbartools/firebot-types 5.67.0-alpha6 → 5.67.0-alpha7
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/package.json
CHANGED
package/types/script-api.d.ts
CHANGED
|
@@ -121,6 +121,14 @@ export interface ScriptTwitchApi {
|
|
|
121
121
|
api: typeof TwitchApi;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
+
/**
|
|
125
|
+
* Access to this plugin's saved parameter values (the settings configured by
|
|
126
|
+
* the user)
|
|
127
|
+
*/
|
|
128
|
+
export interface ScriptParametersApi {
|
|
129
|
+
getAll<T extends Record<string, unknown> = Record<string, unknown>>(): T;
|
|
130
|
+
}
|
|
131
|
+
|
|
124
132
|
export interface ScriptFrontendCommunicatorApi {
|
|
125
133
|
/** Send a synchronous event to the frontend. */
|
|
126
134
|
send<ExpectedArg = unknown>(eventName: string, data?: ExpectedArg): void;
|
|
@@ -168,6 +176,8 @@ export interface FirebotScriptApi {
|
|
|
168
176
|
effects: ScriptEffectsApi;
|
|
169
177
|
/** Access to Firebot's Twitch API wrappers (Helix, chat, auth, etc). */
|
|
170
178
|
twitch: ScriptTwitchApi;
|
|
179
|
+
/** This plugin's saved parameter values. */
|
|
180
|
+
parameters: ScriptParametersApi;
|
|
171
181
|
/** Two-way messaging between the script and the frontend. */
|
|
172
182
|
frontendCommunicator: ScriptFrontendCommunicatorApi;
|
|
173
183
|
}
|