vortez-io 2.0.2 → 2.0.4
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.
|
@@ -32,7 +32,7 @@ export declare class EventChannel<const TimeoutType extends any, const IEMap ext
|
|
|
32
32
|
* @param data The data to send with the event. Must conform to the schema defined for the event in the OEMap.
|
|
33
33
|
* @throws VIOError if the event name is not recognized or if the data does not conform to the schema.
|
|
34
34
|
*/
|
|
35
|
-
send<Name extends string & keyof OEMap>(name: Name, data: OEMap[Name]['
|
|
35
|
+
send<Name extends string & keyof OEMap>(name: Name, data: OEMap[Name]['inferToProcess']): void;
|
|
36
36
|
/**
|
|
37
37
|
* Handles incoming events by validating the event name and data against the IEMap, and then emitting the event if it is recognized. If the event name is not recognized, or if the data does not conform to the schema, a VIOError will be thrown.
|
|
38
38
|
* @param name The name of the incoming event. Must be a key in the IEMap.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventChannel.js","sourceRoot":"","sources":["../../../src/strict/channel/EventChannel.ts"],"names":[],"mappings":"AASA,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AAGzC,MAAM,OAAO,YAIX,SAAQ,OAAkD;IAE1C;IACA;IACA;IAHd,YACc,GAAqB,EACrB,MAAa,EACb,OAAc;QACxB,KAAK,CAAC,GAAG,CAAC,CAAC;QAHD,QAAG,GAAH,GAAG,CAAkB;QACrB,WAAM,GAAN,MAAM,CAAO;QACb,YAAO,GAAP,OAAO,CAAO;QAExB,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACjD,CAAC;IACD;;;;;;;;;;OAUG;IACI,MAAM,CAAC,IAAY,EAAE,IAAS;QACjC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC/B,CAA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