@mafiahub/types 0.1.13 → 0.1.14

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.
Files changed (2) hide show
  1. package/core/events.d.ts +3 -1
  2. package/package.json +1 -1
package/core/events.d.ts CHANGED
@@ -32,7 +32,9 @@ declare const Events: {
32
32
  /**
33
33
  * Emit an event globally. Reserved events cannot be emitted.
34
34
  * Resolves when all handlers complete; rejects with
35
- * `AggregateError` if any handler fails.
35
+ * `AggregateError` if any handler fails. Each failure is also logged under
36
+ * its handler's resource, so an emission left unawaited is not an unhandled
37
+ * rejection; a `.then` or `.finally` chained on it without a rejection handler still is.
36
38
  * @param eventName Shared event name; framework-reserved names cannot be emitted by scripts.
37
39
  * @param args Arguments delivered to every matching handler.
38
40
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mafiahub/types",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "TypeScript type definitions for the MafiaHub Framework scripting API",
5
5
  "types": "index.d.ts",
6
6
  "files": [