Code & Deploy
siGit Code
Git Hosting
Toggle menu
siGit Code
Git Hosting
Sign in
Sign in
@devries-cameron20
/
t3code-1
Fork
0
The best way to control Claude Code, Codex and more from any computer or phone
t3code-1
/
.repos
/
effect
/
packages
/
tools
/
bundle
/
fixtures
/
schema-toArbitrary.ts
Code
Commits
Issues
Pulls
Cloud Agent
CICD
main
main
ts
10 lines
272 Bytes
Copy permalink
Copy
Raw
1
import
*
as
Arbitrary
from
"
effect/Arbitrary
"
2
import
*
as
Schema
from
"
effect/Schema
"
3
4
const
schema
=
Schema
.
Struct
({
5
a
:
Schema
.
String
,
6
b
:
Schema
.
optional
(
Schema
.
FiniteFromString
),
7
c
:
Schema
.
Array
(
Schema
.
String
)
8
})
9
10
export
const
arbitrary
=
Arbitrary
.
schema
(
schema
)