UNPKG

@types/socketio-wildcard

Version:
32 lines (23 loc) 1.17 kB
# Installation > `npm install --save @types/socketio-wildcard` # Summary This package contains type definitions for socketio-wildcard (https://github.com/hden/socketio-wildcard). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/socketio-wildcard. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/socketio-wildcard/index.d.ts) ````ts /// <reference types="socket.io-client" /> import SocketIO = require("socket.io"); import { EventEmitter } from "events"; import Socket = SocketIO.Socket; import ClientSocket = SocketIOClient.Socket; export = sioWildcard; declare function sioWildcard( emitterCtor?: { prototype: typeof EventEmitter.prototype }, ): (socket: Socket | ClientSocket, next?: (err?: any) => void) => void; ```` ### Additional Details * Last updated: Tue, 07 Nov 2023 15:11:36 GMT * Dependencies: [@types/socket.io](https://npmjs.com/package/@types/socket.io), [@types/socket.io-client](https://npmjs.com/package/@types/socket.io-client) # Credits These definitions were written by [BendingBender](https://github.com/BendingBender).