* Describes one subscribable BiDi event, for use with Domain#addCallback(). * @param {string} method * @param {{fromWire(payload: unknown): unknown}} [type] Runtime record/union * class for the event's params, if the schema declares one. When present, * addCallback() parses each delivered pa
(method, type)
| 39 | * The event descriptor, ready to pass to Domain#addCallback(). |
| 40 | */ |
| 41 | function event(method, type) { |
| 42 | return { method, type } |
| 43 | } |
| 44 | |
| 45 | /** Shared base for every generated BiDi domain class. See domain.d.ts for the typed surface. */ |
| 46 | class Domain { |
no outgoing calls
no test coverage detected