smartsocket/ts/smartsocket.pluginstyped.ts
2023-07-21 03:53:41 +02:00

24 lines
634 B
TypeScript

// node native
import type * as http from 'http';
import type * as https from 'https';
export type { http, https };
// pushrocks scope
import type * as typedserver from '@apiglobal/typedserver';
export type { typedserver };
// third party scope
import type { Socket as ServerSocket, Server as ServerServer } from 'socket.io';
import type { Socket as ClientSocket, connect as ClientIo } from 'socket.io-client';
export namespace socketIo {
export type Socket = ServerSocket;
export type Server = ServerServer;
}
export namespace socketIoClient {
export type Socket = ClientSocket;
export type connect = typeof ClientIo;
}