@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.
- package/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +4 -0
- package/package.json +5 -5
- package/src/general.ts +2 -2
- package/src/pluv.ts +24 -48
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/types@0.
|
|
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
|
[34mCLI[39m Building entry: src/index.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
-
[34mCLI[39m tsup v8.0.
|
|
7
|
+
[34mCLI[39m tsup v8.0.2
|
|
8
8
|
[34mCLI[39m Target: es6
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[32mESM[39m [1mdist/index.mjs [22m[32m0 B[39m
|
|
12
|
-
[32mESM[39m ⚡️ Build success in
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 24ms
|
|
13
13
|
[32mCJS[39m [1mdist/index.js [22m[32m754.00 B[39m
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 31ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 906ms
|
|
17
17
|
[32mDTS[39m [1mdist/index.d.mts [22m[32m7.18 KB[39m
|
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m7.18 KB[39m
|
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pluv/types",
|
|
3
|
-
"version": "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.
|
|
20
|
-
"typescript": "^5.
|
|
21
|
-
"@pluv/tsconfig": "^0.
|
|
22
|
-
"eslint-config-pluv": "^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
|
-
|
|
40
|
-
|
|
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> =
|
|
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> =
|
|
116
|
-
any,
|
|
117
|
-
|
|
118
|
-
>
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
: never;
|
|
131
|
-
|
|
132
|
-
export type
|
|
133
|
-
any,
|
|
134
|
-
|
|
135
|
-
|
|
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;
|