electron-reactive-event / API / Event / Request
Request Type
ts
type Request<ChannelType, Registrar> = ChannelType extends keyof Registrar
? RequestDeclKey extends keyof Registrar[ChannelType]
? EmptyEventParameter extends Registrar[ChannelType][RequestDeclKey]
? never
: Registrar[ChannelType][RequestDeclKey]
: never
: never;This is the type that the developer will provide when firing events. It varies from the type that is sent via IPC.
Type Parameters
ChannelType
ChannelType extends Channel<Registrar>
The desired channel of the given Registrar.
Registrar
Registrar extends IRegistrarBase
The registrar interface that holds the desired event declaration.
