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
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/feathersjs__socket-commons, @types/socket.io
Credits
These definitions were written by Jan Lohage, and Desmond Koh.