@pluv/types 0.24.1 → 0.25.0

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.24.1 build /home/runner/work/pluv/pluv/packages/types
2
+ > @pluv/types@0.25.0 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 28ms
12
+ ESM ⚡️ Build success in 25ms
13
13
  CJS dist/index.js 754.00 B
14
- CJS ⚡️ Build success in 29ms
14
+ CJS ⚡️ Build success in 27ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 854ms
17
- DTS dist/index.d.mts 7.61 KB
18
- DTS dist/index.d.ts 7.61 KB
16
+ DTS ⚡️ Build success in 775ms
17
+ DTS dist/index.d.mts 7.68 KB
18
+ DTS dist/index.d.ts 7.68 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @pluv/types
2
2
 
3
+ ## 0.25.0
4
+
3
5
  ## 0.24.1
4
6
 
5
7
  ## 0.24.0
package/dist/index.d.mts CHANGED
@@ -138,10 +138,15 @@ type ProcedureLike<TInput extends JsonObject = {}, TOutput extends EventRecord<s
138
138
  };
139
139
  };
140
140
  interface IORouterLike<TEvents extends Record<string, ProcedureLike<any, any>> = {}> {
141
- _events: TEvents;
141
+ _defs: {
142
+ events: TEvents;
143
+ };
142
144
  }
143
145
  interface IOLike<TAuthorize extends IOAuthorize<any, any, any> = IOAuthorize<any, any, any>, TEvents extends Record<string, ProcedureLike<any, any>> = {}> extends IORouterLike<TEvents> {
144
- _authorize: TAuthorize | null;
146
+ _defs: {
147
+ authorize: TAuthorize | null;
148
+ events: TEvents;
149
+ };
145
150
  }
146
151
  type InferEventsInput<TEvents extends Record<string, ProcedureLike<any, any>>> = {
147
152
  [P in keyof TEvents]: TEvents[P] extends ProcedureLike<infer IInput, any> ? IInput : never;
package/dist/index.d.ts CHANGED
@@ -138,10 +138,15 @@ type ProcedureLike<TInput extends JsonObject = {}, TOutput extends EventRecord<s
138
138
  };
139
139
  };
140
140
  interface IORouterLike<TEvents extends Record<string, ProcedureLike<any, any>> = {}> {
141
- _events: TEvents;
141
+ _defs: {
142
+ events: TEvents;
143
+ };
142
144
  }
143
145
  interface IOLike<TAuthorize extends IOAuthorize<any, any, any> = IOAuthorize<any, any, any>, TEvents extends Record<string, ProcedureLike<any, any>> = {}> extends IORouterLike<TEvents> {
144
- _authorize: TAuthorize | null;
146
+ _defs: {
147
+ authorize: TAuthorize | null;
148
+ events: TEvents;
149
+ };
145
150
  }
146
151
  type InferEventsInput<TEvents extends Record<string, ProcedureLike<any, any>>> = {
147
152
  [P in keyof TEvents]: TEvents[P] extends ProcedureLike<infer IInput, any> ? IInput : never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/types",
3
- "version": "0.24.1",
3
+ "version": "0.25.0",
4
4
  "description": "@pluv/io shared types",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -18,8 +18,8 @@
18
18
  "devDependencies": {
19
19
  "tsup": "^8.2.4",
20
20
  "typescript": "^5.5.4",
21
- "@pluv/tsconfig": "^0.24.1",
22
- "eslint-config-pluv": "^0.24.1"
21
+ "@pluv/tsconfig": "^0.25.0",
22
+ "eslint-config-pluv": "^0.25.0"
23
23
  },
24
24
  "scripts": {
25
25
  "build": "tsup src/index.ts --format esm,cjs --dts",
package/src/pluv.ts CHANGED
@@ -142,14 +142,19 @@ export type ProcedureLike<TInput extends JsonObject = {}, TOutput extends EventR
142
142
  };
143
143
 
144
144
  export interface IORouterLike<TEvents extends Record<string, ProcedureLike<any, any>> = {}> {
145
- _events: TEvents;
145
+ _defs: {
146
+ events: TEvents;
147
+ };
146
148
  }
147
149
 
148
150
  export interface IOLike<
149
151
  TAuthorize extends IOAuthorize<any, any, any> = IOAuthorize<any, any, any>,
150
152
  TEvents extends Record<string, ProcedureLike<any, any>> = {},
151
153
  > extends IORouterLike<TEvents> {
152
- _authorize: TAuthorize | null;
154
+ _defs: {
155
+ authorize: TAuthorize | null;
156
+ events: TEvents;
157
+ };
153
158
  }
154
159
 
155
160
  export type InferEventsInput<TEvents extends Record<string, ProcedureLike<any, any>>> = {