Skip to content

electron-reactive-event / Internal / Factory / DeclHasResponseType

DeclHasResponseType Type

ts
type DeclHasResponseType<ChannelType, Registrar> =
	ResponseDeclKey extends keyof Registrar[ChannelType]
		? Registrar[ChannelType][ResponseDeclKey] extends EmptyEventParameter
			? false
			: true
		: never;

Type Parameters

ChannelType

ChannelType extends keyof Registrar

Registrar

Registrar