npm.io
2.0.7 • Published 2 years ago

@types/socketio-wildcard

Licence
MIT
Version
2.0.7
Deps
2
Size
4 kB
Vulns
0
Weekly
0
Stars
51.5K

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

/// <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

Credits

These definitions were written by BendingBender.