Files
DefinitelyTyped/types/socketio-wildcard/index.d.ts
Nathan Shively-Sanders f253912150 Update EventEmitter references again (#41900)
EventEmitter changed again in
https://github.com/DefinitelyTyped/DefinitelyTyped/pull/41353. This PR
fixes the packages that were missed in that PR.
2020-01-27 15:23:18 -08:00

16 lines
620 B
TypeScript

// Type definitions for socketio-wildcard 2.0
// Project: https://github.com/hden/socketio-wildcard
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <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;