@pluv/types 0.24.0 → 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.
- package/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +4 -0
- package/dist/index.d.mts +7 -2
- package/dist/index.d.ts +7 -2
- package/package.json +3 -3
- package/src/pluv.ts +7 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/types@0.
|
|
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
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
[34mCLI[39m Target: es6
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
|
-
[32mCJS[39m [1mdist/index.js [22m[32m754.00 B[39m
|
|
12
|
-
[32mCJS[39m ⚡️ Build success in 35ms
|
|
13
11
|
[32mESM[39m [1mdist/index.mjs [22m[32m0 B[39m
|
|
14
|
-
[32mESM[39m ⚡️ Build success in
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 25ms
|
|
13
|
+
[32mCJS[39m [1mdist/index.js [22m[32m754.00 B[39m
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 27ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m7.
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m7.
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 775ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m7.68 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m7.68 KB[39m
|
package/CHANGELOG.md
CHANGED
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
22
|
-
"eslint-config-pluv": "^0.
|
|
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
|
-
|
|
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
|
-
|
|
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>>> = {
|