@mafiahub/types 0.1.10 → 0.1.12

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.
@@ -56,6 +56,9 @@ interface DiscordPresenceOptions {
56
56
  * calls no-op (setters silently, commits return `false`) when Discord presence
57
57
  * is disabled or unavailable.
58
58
  *
59
+ * A game may keep its own presence and open only some fields to scripts;
60
+ * writes to the other fields are ignored.
61
+ *
59
62
  * @example
60
63
  * // Batch form — apply several fields and publish in one call:
61
64
  * Discord.setPresence({
@@ -135,7 +138,7 @@ declare const Discord: {
135
138
  update(): boolean;
136
139
 
137
140
  /**
138
- * Clear the activity on Discord and reset the staged state.
141
+ * Clear what scripts published and reset the staged state.
139
142
  * @returns `true` if dispatched, `false` if unavailable.
140
143
  */
141
144
  clear(): boolean;
@@ -16,6 +16,9 @@
16
16
  * `insert` `delete` `home` `end` `pageup` `pagedown` `capslock`
17
17
  * - Numpad `numpad0`–`numpad9` (aliases `num0`–`num9`)
18
18
  * - Mouse `mouse1` (left) `mouse2` (right) `mouse3` (middle) `mouse4` `mouse5`
19
+ * - Wheel `wheelup` `wheeldown`: each notch fires `"down"` then `"up"`, and
20
+ * the game still receives it. Never held, so `isDown` is always `false`.
21
+ * Needs a game input adapter that reports the wheel (the framework's does).
19
22
  *
20
23
  * Letters and digits identify physical positions on a US keyboard. Use
21
24
  * `getLabel` to show the corresponding label in the player's current layout.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mafiahub/types",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "TypeScript type definitions for the MafiaHub Framework scripting API",
5
5
  "types": "index.d.ts",
6
6
  "files": [