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 22:40:55 +01:00
import type * as http from 'http';
import type * as https from 'https';
2020-09-29 17:21:08 +00:00
2023-07-21 03:53:41 +02:00
export type { http, https };
2020-09-29 17:21:08 +00:00
// pushrocks scope
2023-09-09 23:32:12 +02:00
import type * as typedserver from '@api.global/typedserver';
2020-09-29 17:21:08 +00:00
2023-07-21 03:53:41 +02:00
export type { typedserver };
2020-09-29 17:21:08 +00:00
// third party scope
2022-12-28 13:52:16 +01:00
import type { Socket as ServerSocket, Server as ServerServer } from 'socket.io';
2022-01-19 18:36:13 +01:00
import type { Socket as ClientSocket, connect as ClientIo } from 'socket.io-client';
2020-09-29 17:21:08 +00:00
2022-03-24 12:52:28 +01:00
export namespace socketIo {
export type Socket = ServerSocket;
export type Server = ServerServer;
}
2022-01-19 18:36:13 +01:00
export namespace socketIoClient {
export type Socket = ClientSocket;
export type connect = typeof ClientIo;
}