@pluv/types 0.38.11 → 0.38.13

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,5 @@
1
1
 
2
- > @pluv/types@0.38.11 build /home/runner/work/pluv/pluv/packages/types
2
+ > @pluv/types@0.38.13 build /home/runner/work/pluv/pluv/packages/types
3
3
  > tsup src/index.ts --format esm,cjs --dts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -9,10 +9,10 @@
9
9
  ESM Build start
10
10
  CJS Build start
11
11
  ESM dist/index.mjs 0 B
12
- ESM ⚡️ Build success in 26ms
12
+ ESM ⚡️ Build success in 29ms
13
13
  CJS dist/index.js 758.00 B
14
- CJS ⚡️ Build success in 27ms
14
+ CJS ⚡️ Build success in 30ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 738ms
17
- DTS dist/index.d.mts 7.09 KB
18
- DTS dist/index.d.ts 7.09 KB
16
+ DTS ⚡️ Build success in 715ms
17
+ DTS dist/index.d.mts 7.10 KB
18
+ DTS dist/index.d.ts 7.10 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @pluv/types
2
2
 
3
+ ## 0.38.13
4
+
5
+ ## 0.38.12
6
+
3
7
  ## 0.38.11
4
8
 
5
9
  ## 0.38.10
package/dist/index.d.mts CHANGED
@@ -154,7 +154,7 @@ type InferIOOutput<TRouter extends IORouterLike<any>> = TRouter extends IORouter
154
154
  type InferEventMessage<TEvents = EventRecord<string, any>, TEvent extends keyof TEvents = keyof TEvents> = TEvents extends EventRecord<string, any> ? {
155
155
  [P in TEvent]: P extends string ? Id<EventMessage<P, TEvents[P]>> : never;
156
156
  }[TEvent] : never;
157
- type IOEventMessage<TIO extends IOLike<any>, TEvent extends keyof InferIOOutput<TIO> = keyof InferIOOutput<TIO>> = Id<{
157
+ type IOEventMessage<TIO extends IOLike<any, any>, TEvent extends keyof InferIOOutput<TIO> = keyof InferIOOutput<TIO>> = Id<{
158
158
  room: string;
159
159
  } & InferEventMessage<InferIOOutput<TIO>, TEvent> & (InferEventMessage<InferIOOutput<TIO>, TEvent>["type"] extends "$error" ? Partial<IOAuthorizeEventMessage<TIO>> : IOAuthorizeEventMessage<TIO>)>;
160
160
 
package/dist/index.d.ts CHANGED
@@ -154,7 +154,7 @@ type InferIOOutput<TRouter extends IORouterLike<any>> = TRouter extends IORouter
154
154
  type InferEventMessage<TEvents = EventRecord<string, any>, TEvent extends keyof TEvents = keyof TEvents> = TEvents extends EventRecord<string, any> ? {
155
155
  [P in TEvent]: P extends string ? Id<EventMessage<P, TEvents[P]>> : never;
156
156
  }[TEvent] : never;
157
- type IOEventMessage<TIO extends IOLike<any>, TEvent extends keyof InferIOOutput<TIO> = keyof InferIOOutput<TIO>> = Id<{
157
+ type IOEventMessage<TIO extends IOLike<any, any>, TEvent extends keyof InferIOOutput<TIO> = keyof InferIOOutput<TIO>> = Id<{
158
158
  room: string;
159
159
  } & InferEventMessage<InferIOOutput<TIO>, TEvent> & (InferEventMessage<InferIOOutput<TIO>, TEvent>["type"] extends "$error" ? Partial<IOAuthorizeEventMessage<TIO>> : IOAuthorizeEventMessage<TIO>)>;
160
160
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/types",
3
- "version": "0.38.11",
3
+ "version": "0.38.13",
4
4
  "description": "@pluv/io shared types",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -19,8 +19,8 @@
19
19
  "eslint": "^8.57.1",
20
20
  "tsup": "^8.4.0",
21
21
  "typescript": "^5.8.3",
22
- "@pluv/tsconfig": "^0.38.11",
23
- "eslint-config-pluv": "^0.38.11"
22
+ "@pluv/tsconfig": "^0.38.13",
23
+ "eslint-config-pluv": "^0.38.13"
24
24
  },
25
25
  "scripts": {
26
26
  "build": "tsup src/index.ts --format esm,cjs --dts",
package/src/pluv.ts CHANGED
@@ -153,7 +153,7 @@ export type InferEventMessage<TEvents = EventRecord<string, any>, TEvent extends
153
153
  : never;
154
154
 
155
155
  export type IOEventMessage<
156
- TIO extends IOLike<any>,
156
+ TIO extends IOLike<any, any>,
157
157
  TEvent extends keyof InferIOOutput<TIO> = keyof InferIOOutput<TIO>,
158
158
  > = Id<
159
159
  { room: string } & InferEventMessage<InferIOOutput<TIO>, TEvent> &