@types/feathersjs__socketio
TypeScript icon, indicating that this package has built-in type declarations

3.0.13 • Public • Published

Installation

npm install --save @types/feathersjs__socketio

Summary

This package contains type definitions for @feathersjs/socketio (https://feathersjs.com).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/feathersjs__socketio.

index.d.ts

/// <reference types="feathersjs__socket-commons"/>
import * as io from "socket.io";

declare const socketio: FeathersSocketIO;
export = socketio;

interface FeathersSocketIO {
    (callback?: (io: io.Server) => void): () => void;
    (options: number | io.ServerOptions, callback?: (io: io.Server) => void): () => void;
    (port: number, options?: io.ServerOptions, callback?: (io: io.Server) => void): () => void;
    readonly SOCKET_KEY: unique symbol;
    default: FeathersSocketIO;
}

Additional Details

Credits

These definitions were written by Jan Lohage, and Desmond Koh.

/@types/feathersjs__socketio/

    Package Sidebar

    Install

    npm i @types/feathersjs__socketio

    Weekly Downloads

    208

    Version

    3.0.13

    License

    MIT

    Unpacked Size

    4.01 kB

    Total Files

    5

    Last publish

    Collaborators

    • types