@kingdomsconnected/types 1.5.6 → 1.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kingdomsconnected/types",
3
- "version": "1.5.6",
3
+ "version": "1.6.0",
4
4
  "description": "TypeScript declarations for the Kingdoms Connected scripting API, one entry per side: @kingdomsconnected/types/server and @kingdomsconnected/types/client",
5
5
  "license": "UNLICENSED",
6
6
  "keywords": [
package/shared.d.ts CHANGED
@@ -10,6 +10,9 @@
10
10
  * inline `(...) => ...`, so a handler parameter has nowhere else it can be spelled.
11
11
  */
12
12
 
13
+ /** Handler for an `ActionHint`, given the id `ActionHint.create` returned for it. */
14
+ export type ActionHintHandler = (hint: number) => void;
15
+
13
16
  /** Handler for an event raised through the framework event bus. A returned promise is awaited, so a handler may be async. */
14
17
  export type EventHandler = (...args: unknown[]) => unknown | Promise<unknown>;
15
18