@pluv/types 0.15.0 → 0.16.1

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,18 +1,18 @@
1
1
 
2
- > @pluv/types@0.15.0 build /home/runner/work/pluv/pluv/packages/types
2
+ > @pluv/types@0.16.1 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
6
6
  CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.0.1
7
+ CLI tsup v8.0.2
8
8
  CLI Target: es6
9
9
  ESM Build start
10
10
  CJS Build start
11
11
  ESM dist/index.mjs 0 B
12
- ESM ⚡️ Build success in 40ms
12
+ ESM ⚡️ Build success in 24ms
13
13
  CJS dist/index.js 754.00 B
14
- CJS ⚡️ Build success in 41ms
14
+ CJS ⚡️ Build success in 31ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 876ms
16
+ DTS ⚡️ Build success in 906ms
17
17
  DTS dist/index.d.mts 7.18 KB
18
18
  DTS dist/index.d.ts 7.18 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @pluv/types
2
2
 
3
+ ## 0.16.1
4
+
5
+ ## 0.16.0
6
+
3
7
  ## 0.15.0
4
8
 
5
9
  ## 0.14.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/types",
3
- "version": "0.15.0",
3
+ "version": "0.16.1",
4
4
  "description": "@pluv/io shared types",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -16,10 +16,10 @@
16
16
  "access": "public"
17
17
  },
18
18
  "devDependencies": {
19
- "tsup": "^8.0.1",
20
- "typescript": "^5.2.2",
21
- "@pluv/tsconfig": "^0.15.0",
22
- "eslint-config-pluv": "^0.15.0"
19
+ "tsup": "^8.0.2",
20
+ "typescript": "^5.3.3",
21
+ "@pluv/tsconfig": "^0.16.1",
22
+ "eslint-config-pluv": "^0.16.1"
23
23
  },
24
24
  "scripts": {
25
25
  "build": "tsup src/index.ts --format esm,cjs --dts",
package/src/general.ts CHANGED
@@ -36,8 +36,8 @@ export type DeepPartial<T> = {
36
36
  [P in keyof T]?: T[P] extends Array<infer U>
37
37
  ? Array<DeepPartial<U>>
38
38
  : T[P] extends ReadonlyArray<infer U>
39
- ? ReadonlyArray<DeepPartial<U>>
40
- : DeepPartial<T[P]>;
39
+ ? ReadonlyArray<DeepPartial<U>>
40
+ : DeepPartial<T[P]>;
41
41
  };
42
42
 
43
43
  export type DeepWriteable<T> = {
package/src/pluv.ts CHANGED
@@ -96,11 +96,8 @@ export type InferEventMessage<
96
96
  [P in TEvent]: P extends string ? Id<EventMessage<P, TEvents[P]>> : never;
97
97
  }[TEvent];
98
98
 
99
- export type InferIOAuthorize<TIO extends IOLike> = TIO extends IOLike<
100
- infer IAuthorize
101
- >
102
- ? IAuthorize
103
- : never;
99
+ export type InferIOAuthorize<TIO extends IOLike> =
100
+ TIO extends IOLike<infer IAuthorize> ? IAuthorize : never;
104
101
 
105
102
  export type InferIOAuthorizeRequired<TAuthorize extends IOAuthorize<any, any>> =
106
103
  TAuthorize extends IOAuthorize<any, infer IRequired> ? IRequired : never;
@@ -112,49 +109,28 @@ export type InferIOAuthorizeUser<TAuthorize extends IOAuthorize<any, any>> =
112
109
  : IUser | null
113
110
  : never;
114
111
 
115
- export type InferIOInput<TIO extends IOLike> = TIO extends IOLike<
116
- any,
117
- infer IInput
118
- >
119
- ? IInput
120
- : never;
121
-
122
- export type InferIOOutput<TIO extends IOLike> = TIO extends IOLike<
123
- any,
124
- any,
125
- infer IOutputBroadcast,
126
- infer IOutputSelf,
127
- infer IOutputSync
128
- >
129
- ? Spread<[IOutputBroadcast, IOutputSelf, IOutputSync]>
130
- : never;
131
-
132
- export type InferIOOutputBroadcast<TIO extends IOLike> = TIO extends IOLike<
133
- any,
134
- any,
135
- infer IOutput
136
- >
137
- ? IOutput
138
- : never;
139
-
140
- export type InferIOOutputSelf<TIO extends IOLike> = TIO extends IOLike<
141
- any,
142
- any,
143
- any,
144
- infer IOutput
145
- >
146
- ? IOutput
147
- : never;
148
-
149
- export type InferIOOutputSync<TIO extends IOLike> = TIO extends IOLike<
150
- any,
151
- any,
152
- any,
153
- any,
154
- infer IOutput
155
- >
156
- ? IOutput
157
- : never;
112
+ export type InferIOInput<TIO extends IOLike> =
113
+ TIO extends IOLike<any, infer IInput> ? IInput : never;
114
+
115
+ export type InferIOOutput<TIO extends IOLike> =
116
+ TIO extends IOLike<
117
+ any,
118
+ any,
119
+ infer IOutputBroadcast,
120
+ infer IOutputSelf,
121
+ infer IOutputSync
122
+ >
123
+ ? Spread<[IOutputBroadcast, IOutputSelf, IOutputSync]>
124
+ : never;
125
+
126
+ export type InferIOOutputBroadcast<TIO extends IOLike> =
127
+ TIO extends IOLike<any, any, infer IOutput> ? IOutput : never;
128
+
129
+ export type InferIOOutputSelf<TIO extends IOLike> =
130
+ TIO extends IOLike<any, any, any, infer IOutput> ? IOutput : never;
131
+
132
+ export type InferIOOutputSync<TIO extends IOLike> =
133
+ TIO extends IOLike<any, any, any, any, infer IOutput> ? IOutput : never;
158
134
 
159
135
  export type InputZodLike<TData extends JsonObject> = {
160
136
  _input: TData;