@voidedhost/shared-types 1.0.1 → 1.0.2

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.
@@ -1,5 +1,6 @@
1
1
  import { ApiComment, ApiImage } from "../api";
2
2
  import { Level, SocketResponse } from "./general";
3
+ export type SubscriptionChannel = `images:*` | `users:${number}:images` | `images:${number}`;
3
4
  export interface ServerToClientEvents {
4
5
  welcome: (payload: {
5
6
  userId: number;
@@ -25,7 +26,6 @@ export interface ServerToClientEvents {
25
26
  id: number;
26
27
  } & Partial<ApiComment>) => void;
27
28
  }
28
- type SubscriptionChannel = `images:*` | `users:${number}:images` | `images:${number}`;
29
29
  export interface ClientToServerEvents {
30
30
  ping: (callback: () => void) => void;
31
31
  subscribe: (intent: SubscriptionChannel, callback?: (response: SocketResponse) => void) => void;
@@ -66,4 +66,3 @@ export interface ClientToServerEvents {
66
66
  } & Partial<ApiComment>;
67
67
  }) => void;
68
68
  }
69
- export {};
@@ -1 +1,2 @@
1
1
  export * from "./events";
2
+ export * from "./general";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidedhost/shared-types",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Shared TypeScript types for voided.host projects",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [