vovk-hello-world 0.0.25 → 0.0.26
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/README.md +13 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<!-- auto-generated by vovk-cli v0.0.1-draft.299 at 2025-07-18T18:
|
|
1
|
+
<!-- auto-generated by vovk-cli v0.0.1-draft.299 at 2025-07-18T18:09:53.089Z -->
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
# vovk-hello-world v0.0.
|
|
4
|
+
# vovk-hello-world v0.0.26 [](https://www.typescriptlang.org/) [](https://vovk.dev)
|
|
5
5
|
|
|
6
6
|
> A showcase for Next.js + Vovk.ts + Zod, demonstrating its capabilities with TypeScript, Rust, and Python RPC.
|
|
7
7
|
|
|
@@ -29,22 +29,22 @@ import { UserRPC } from 'vovk-hello-world';
|
|
|
29
29
|
|
|
30
30
|
const response = await UserRPC.updateUser({
|
|
31
31
|
body: {
|
|
32
|
-
|
|
32
|
+
// User email
|
|
33
33
|
email: "john@example.com",
|
|
34
|
-
|
|
34
|
+
// User profile object
|
|
35
35
|
profile: {
|
|
36
|
-
|
|
36
|
+
// User full name
|
|
37
37
|
name: "John Doe",
|
|
38
|
-
|
|
38
|
+
// User age
|
|
39
39
|
age: 25
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
query: {
|
|
43
|
-
|
|
43
|
+
// Notification type
|
|
44
44
|
notify: "email"
|
|
45
45
|
},
|
|
46
46
|
params: {
|
|
47
|
-
|
|
47
|
+
// User ID
|
|
48
48
|
id: "123e4567-e89b-12d3-a456-426614174000"
|
|
49
49
|
},
|
|
50
50
|
});
|
|
@@ -52,10 +52,10 @@ const response = await UserRPC.updateUser({
|
|
|
52
52
|
console.log(response);
|
|
53
53
|
/*
|
|
54
54
|
{
|
|
55
|
-
// -----
|
|
56
|
-
// Response object
|
|
57
|
-
// -----
|
|
58
|
-
// Success status
|
|
55
|
+
// -----
|
|
56
|
+
// Response object
|
|
57
|
+
// -----
|
|
58
|
+
// Success status
|
|
59
59
|
success: true
|
|
60
60
|
}
|
|
61
61
|
*/
|
|
@@ -82,7 +82,7 @@ for await (const item of response) {
|
|
|
82
82
|
console.log(item);
|
|
83
83
|
/*
|
|
84
84
|
{
|
|
85
|
-
|
|
85
|
+
// Message from the token
|
|
86
86
|
message: "string"
|
|
87
87
|
}
|
|
88
88
|
*/
|
package/package.json
CHANGED