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