smartsocket/ts/smartsocket.pluginstyped.ts

24 lines
635 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
2023-07-21 01:53:41 +00:00
export type { http, https };
2020-09-29 17:21:08 +00:00
// pushrocks scope
2023-09-09 21:32:12 +00:00
import type * as typedserver from '@api.global/typedserver';
2020-09-29 17:21:08 +00:00
2023-07-21 01:53:41 +00:00
export type { typedserver };
2020-09-29 17:21:08 +00:00
// third party scope
2022-12-28 12:52:16 +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;
}