Defines a "pubsub event" function handler. Returns the handler function as-is, only providing the types and doing basic validation.
The handler's return type is inferred, so a pubsub function can resolve to a value that callers receive from invoke(name, payload, {sync: true}).
invoke(name, payload, {sync: true})
The event handler function to use.
The handler function, unmodified.
Defines a "pubsub event" function handler. Returns the handler function as-is, only providing the types and doing basic validation.
The handler's return type is inferred, so a pubsub function can resolve to a value that callers receive from
invoke(name, payload, {sync: true}).