smartsocket/ts/smartsocket.pluginstyped.ts

24 lines
626 B
TypeScript
Raw Normal View History

2020-09-29 17:21:08 +00:00
// node native
2022-03-14 21:40:55 +00:00
import type * as http from 'http';
import type * as https from 'https';
2020-09-29 17:21:08 +00:00
2020-09-29 18:58:09 +00:00
export { http, https };
2020-09-29 17:21:08 +00:00
// pushrocks scope
import type * as smartexpress from '@pushrocks/smartexpress';
2020-09-29 18:58:09 +00:00
export { smartexpress };
2020-09-29 17:21:08 +00:00
// third party scope
2022-03-24 11:52:28 +00:00
import type { Socket as ServerSocket, Server as ServerServer} from 'socket.io';
2022-01-19 17:36:13 +00:00
import type { Socket as ClientSocket, connect as ClientIo } from 'socket.io-client';
2020-09-29 17:21:08 +00:00
2022-03-24 11:52:28 +00:00
export namespace socketIo {
export type Socket = ServerSocket;
export type Server = ServerServer;
}
2022-01-19 17:36:13 +00:00
export namespace socketIoClient {
export type Socket = ClientSocket;
export type connect = typeof ClientIo;
}