@crowbartools/firebot-types 5.67.0-alpha21 → 5.67.0-alpha22

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowbartools/firebot-types",
3
- "version": "5.67.0-alpha21",
3
+ "version": "5.67.0-alpha22",
4
4
  "description": "Type definitions and plugin API for Firebot plugins.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1,3 +1,4 @@
1
+ import type { Awaitable } from "./util-types";
1
2
  export type BasePage = {
2
3
  id: string;
3
4
  name: string;
@@ -97,5 +98,5 @@ export type UIExtension = {
97
98
  export type FrontendListener = {
98
99
  eventName: string;
99
100
  useAsync?: boolean;
100
- handler: <ExpectedArgs extends Array<unknown> = [], ReturnPayload = void>(...args: ExpectedArgs) => ReturnPayload;
101
+ handler: (...args: unknown[]) => Awaitable<unknown>;
101
102
  };