electron-reactive-event / API / Event / ErrorMessage
ErrorMessage Type
ts
type ErrorMessage<ChannelType, Registrar> =
ErrorMessageDeclKey extends keyof Registrar[ChannelType]
? Registrar[ChannelType][ErrorMessageDeclKey]
: never;For a given event declaration, this is the error message type. It always extends string.
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.
