You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .llms-snapshots/llms-full.txt
+52-2Lines changed: 52 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -11325,7 +11325,7 @@ API reference for writing serverless functions in Rust or TypeScript.
11325
11325
11326
11326
[## 🗃️ TypeScript
11327
11327
11328
-
5 items](/docs/reference/functions/typescript.md)
11328
+
6 items](/docs/reference/functions/typescript.md)
11329
11329
11330
11330
# Plugins
11331
11331
@@ -11729,7 +11729,7 @@ API reference for writing serverless functions in Rust or TypeScript.
11729
11729
11730
11730
[## 🗃️ TypeScript
11731
11731
11732
-
5 items](/docs/reference/functions/typescript.md)
11732
+
6 items](/docs/reference/functions/typescript.md)
11733
11733
11734
11734
# Rust
11735
11735
@@ -11755,6 +11755,10 @@ This page lists the crate versions for each Juno release, to help you upgrade yo
11755
11755
11756
11756
API reference for writing serverless functions with TypeScript.
11757
11757
11758
+
[## 📄️ Schema Types
11759
+
11760
+
Juno provides a type system built on top of Zod, extended with a few additional types you'll need when working with serverless functions.](/docs/reference/functions/typescript/schema.md)
11761
+
11758
11762
[## 📄️ SDK
11759
11763
11760
11764
The SDK is provided by the @junobuild/functions library.](/docs/reference/functions/typescript/sdk.md)
API reference for writing serverless functions with TypeScript.
12239
12243
12244
+
[## 📄️ Schema Types
12245
+
12246
+
Juno provides a type system built on top of Zod, extended with a few additional types you'll need when working with serverless functions.](/docs/reference/functions/typescript/schema.md)
12247
+
12240
12248
[## 📄️ SDK
12241
12249
12242
12250
The SDK is provided by the @junobuild/functions library.](/docs/reference/functions/typescript/sdk.md)
@@ -12698,6 +12706,48 @@ Logging is fully supported. Objects are stringified and logs are routed to the I
12698
12706
console.log("Hello from the Satellite");console.info("Hello", { type: "info", msg: "Something happened" });
12699
12707
```
12700
12708
12709
+
# Schema Types
12710
+
12711
+
Juno provides a type system built on top of [Zod](https://zod.dev/), extended with a few additional types you'll need when working with serverless functions.
12712
+
12713
+
All types are available through `j`.
12714
+
12715
+
```
12716
+
import { j } from "@junobuild/schema";
12717
+
```
12718
+
12719
+
---
12720
+
12721
+
## Juno Types
12722
+
12723
+
The following are specific types provided by Juno:
12724
+
12725
+
### j.principal()
12726
+
12727
+
Validates and represents an Internet Computer Principal.
12728
+
12729
+
```
12730
+
j.principal();
12731
+
```
12732
+
12733
+
### j.uint8array()
12734
+
12735
+
Validates and represents a `Uint8Array`.
12736
+
12737
+
```
12738
+
j.uint8array();
12739
+
```
12740
+
12741
+
---
12742
+
12743
+
## Zod Types
12744
+
12745
+
All Zod types are available through `j`. Refer to the [Zod documentation](https://zod.dev/) for the full API reference.
12746
+
12747
+
**Note:**
12748
+
12749
+
`union` is not supported. Use `discriminatedUnion` instead.
12750
+
12701
12751
# SDK
12702
12752
12703
12753
The following functions are provided to help you work with document and asset data inside your Satellite. They are part of the tools available when writing serverless functions in TypeScript and support common tasks such as interacting with the datastore, storage, and custom hook logic.
Copy file name to clipboardExpand all lines: .llms-snapshots/llms.txt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -218,6 +218,7 @@ Juno is your self-contained serverless platform for building full-stack web apps
218
218
- [Canisters](https://juno.build/docs/reference/functions/typescript/canisters.md): The following functions can be used to interact with well-known Internet Computer canisters from your serverless functions.
219
219
- [IC-CDK](https://juno.build/docs/reference/functions/typescript/ic-cdk.md): Juno exposes a growing set of these features for TypeScript, allowing you to build serverless functions that interact with the IC using a familiar developer experience.
220
220
- [Node.js](https://juno.build/docs/reference/functions/typescript/node.md): The TypeScript runtime used in Juno does not provide full Node.js support. Polyfills are added iteratively to keep the environment stable and predictable.
221
+
- [Schema Types](https://juno.build/docs/reference/functions/typescript/schema.md): Juno provides a type system built on top of Zod, extended with a few additional types you'll need when working with serverless functions.
221
222
- [SDK](https://juno.build/docs/reference/functions/typescript/sdk.md): The SDK is provided by the @junobuild/functions library.
222
223
- [Utils](https://juno.build/docs/reference/functions/typescript/utils.md): All utilities on this page are provided by the @junobuild/functions library.
Juno provides a type system built on top of [Zod](https://zod.dev/), extended with a few additional types you'll need when working with serverless functions.
4
+
5
+
All types are available through `j`.
6
+
7
+
```typescript
8
+
import { j } from"@junobuild/schema";
9
+
```
10
+
11
+
---
12
+
13
+
## Juno Types
14
+
15
+
The following are specific types provided by Juno:
16
+
17
+
### j.principal()
18
+
19
+
Validates and represents an Internet Computer Principal.
20
+
21
+
```typescript
22
+
j.principal();
23
+
```
24
+
25
+
### j.uint8array()
26
+
27
+
Validates and represents a `Uint8Array`.
28
+
29
+
```typescript
30
+
j.uint8array();
31
+
```
32
+
33
+
---
34
+
35
+
## Zod Types
36
+
37
+
All Zod types are available through `j`. Refer to the [Zod documentation](https://zod.dev/) for the full API reference.
38
+
39
+
:::note
40
+
41
+
`union` is not supported. Use `discriminatedUnion` instead.
0 commit comments