UNPKG
contro-max
Version:
latest (0.1.12)
0.1.12
0.1.11
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Game controls done in the best possible way!
github.com/zardoy/contro-max
zardoy/contro-max
contro-max
/
build
/
eventUtils.d.ts
4 lines
(3 loc)
•
236 B
TypeScript
View Raw
1
2
3
4
export
declare
const
bindEventListeners
: <K
extends
(...
args
:
any
) =>
any
>
(
target
:
Record
<
'addEventListener'
|
'removeEventListener'
, K>,
events
: { [e
in
Parameters<K>[
0
]]?: Parameters<K>[
1
] |
undefined
; }
) =>
{
cleanup
():
void
; };