Skip to content

electron-reactive-event / Internal / Factory / DeclHasRequestType

DeclHasRequestType Type

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

Type Parameters

ChannelType

ChannelType extends keyof Registrar

Registrar

Registrar