UNPKG
@bit-gpt/h402
Version:
latest (0.0.22)
0.0.22
0.0.21
0.0.20
0.0.19
0.0.18
0.0.17
0.0.16
0.0.15
0.0.14
BitGPT's 402 open protocol for blockchain-native payments
github.com/bit-gpt/402
bit-gpt/402
@bit-gpt/h402
/
dist
/
types
/
shared
/
money.js
5 lines
•
225 B
JavaScript
View Raw
1
2
3
4
5
import
{ z }
from
"zod"
;
export
const
moneySchema = z .
union
([z.
string
().
transform
(
x
=>
x.
replace
(
/[^0-9.-]+/g
,
""
)), z.
number
()]) .
pipe
(z.
coerce
.
number
().
min
(
0.0001
).
max
(
999999999
));
//# sourceMappingURL=money.js.map