Skip to content

Type alias: CustomEvent<Args, Return> ​

Ƭ CustomEvent<Args, Return>: (...args: Args) => Return

Type parameters ​

NameType
Argsextends any[] = any[]
Returnany

Type declaration ​

â–¸ (...args): Return

To type Args (the event callback arguments) pass an array as argument list as first generic type To type Return (the event callback return value) pass a value to the second generic type

Parameters ​
NameType
...argsArgs
Returns ​

Return

Released under the MIT License.