socket.io-event-types

TypeScript utilities for stricter Socket.IO event function typings.

Usage no npm install needed!

<script type="module">
  import socketIoEventTypes from 'https://cdn.skypack.dev/socket.io-event-types';
</script>

README

socket.io-event-types

npm version

This typings utility allows to specify explicit typings / function signatures for on and emit. This can be used to enable the TypeScript compiler to warn when the arguments are not being passed properly.