UNPKG

@n1k1t/mock-server

Version:

Powerful util to setup mocks over HTTP APIs

6 lines 376 B
import type { Server } from 'socket.io'; export interface ISocketIoExchangeService<TSchema extends object> { publish: <K extends keyof TSchema & string>(channel: K, payload: TSchema[K]) => unknown; } export declare const buildSocketIoExchange: <TSchema extends object>(io: Pick<Server, "emit">) => ISocketIoExchangeService<TSchema>; //# sourceMappingURL=socket-io.d.ts.map