Type alias: CustomEvent<Args, Return>
Ƭ CustomEvent<Args
, Return
>: (...args
: Args
) => Return
Type parameters
Name | Type |
---|---|
Args | extends any [] = any [] |
Return | any |
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
Name | Type |
---|---|
...args | Args |
Returns
Return