Ghost
New
phantomknight287
/
saturn
public
The operating system for your freelance business.
Star
0
Fork
0
Code
Issues
0
Pull requests
0
6d60961
1
branch
Go to file
t
Code
saturn
src
app
(root)
onboarding
common.ts
feat: here comes the money
442302e
7 months ago
10 lines · 312 B
1
import
{
z
}
from
'
zod
'
2
3
export
const
createNewOrganizationSchema
=
4
name
:
z
.
string
5
currency
:
z
.
string
6
}
)
7
8
export
type
CreateNewOrganizationSchema
9
typeof
createNewOrganizationSchema
10
>
z
.
object
(
{
(
{}
)
.
min
(
1
,
{
message
:
'
Please enter a name
'
}
)
,
(
{}
)
.
min
(
1
,
{
message
:
'
Please select a currency
'
}
)
,
=
z
.
infer
<