Type alias TypedEventListener<T>

TypedEventListener<T>: T extends void
    ? (() => void)
    : ((data) => void)

A type definition representing a void function with optional parameter dynamically-typed.

Type Parameters

  • T = void