topsyde-utils 1.0.89 → 1.0.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -42,4 +42,4 @@ export { ControllerResponse, ControllerAction, ControllerMap, ControllerOptions
42
42
  export { Routes } from "./server/bun/router/routes";
43
43
  export { I_WebsocketConstructor } from "./server/bun/websocket/Websocket";
44
44
  export { E_WebsocketMessageType } from "./server/bun/websocket/websocket.enums";
45
- export { WebsocketMessage, WebsocketChannel, WebsocketStructuredMessage, WebsocketEntityData, I_WebsocketEntity, I_WebsocketClient, I_WebsocketChannelEntity, BroadcastOptions, I_WebsocketChannel, I_WebsocketInterface, } from "./server/bun/websocket/websocket.types";
45
+ export { WebsocketMessage, WebsocketChannel, WebsocketStructuredMessage, WebsocketEntityId, WebsocketEntityName, WebsocketEntityData, I_WebsocketEntity, I_WebsocketClient, I_WebsocketChannelEntity, BroadcastOptions, I_WebsocketChannel, I_WebsocketInterface, } from "./server/bun/websocket/websocket.types";
@@ -42,14 +42,14 @@ export type WebsocketStructuredMessage<T = any> = {
42
42
  */
43
43
  [key: string]: any;
44
44
  };
45
+ export type WebsocketEntityId = string;
46
+ export type WebsocketEntityName = string;
45
47
  export type WebsocketEntityData = {
46
- id: string;
47
- name: string;
48
+ id: WebsocketEntityId;
49
+ name: WebsocketEntityName;
48
50
  };
49
- export interface I_WebsocketEntity {
51
+ export interface I_WebsocketEntity extends WebsocketEntityData {
50
52
  ws: ServerWebSocket<WebsocketEntityData>;
51
- id: string;
52
- name: string;
53
53
  }
54
54
  export interface I_WebsocketClient extends I_WebsocketEntity {
55
55
  channels: WebsocketChannel<I_WebsocketChannel>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "topsyde-utils",
3
- "version": "1.0.89",
3
+ "version": "1.0.90",
4
4
  "description": "A bundle of TypeScript utility classes and functions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",