Skip to content

Commit

Permalink
refactor: export DisconnectReason type
Browse files Browse the repository at this point in the history
Related: #4556
  • Loading branch information
darrachequesne committed Jan 23, 2023
1 parent 93d446a commit f8640d9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import {
import * as parser from "socket.io-parser";
import type { Encoder } from "socket.io-parser";
import debugModule from "debug";
import { Socket } from "./socket";
import { Socket, DisconnectReason } from "./socket";
import type { BroadcastOperator, RemoteSocket } from "./broadcast-operator";
import {
EventsMap,
Expand Down Expand Up @@ -1096,5 +1096,12 @@ module.exports.Server = Server;
module.exports.Namespace = Namespace;
module.exports.Socket = Socket;

export { Socket, ServerOptions, Namespace, BroadcastOperator, RemoteSocket };
export {
Socket,
DisconnectReason,
ServerOptions,
Namespace,
BroadcastOperator,
RemoteSocket,
};
export { Event } from "./socket";

0 comments on commit f8640d9

Please sign in to comment.