MCPcopy
hub / github.com/colinhacks/zod / bigint

Method bigint

packages/zod/src/v3/tests/Mocker.ts:18–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16 return Math.random() * 100;
17 }
18 get bigint(): bigint {
19 return BigInt(Math.floor(Math.random() * 10000));
20 }
21 get boolean(): boolean {
22 return Math.random() < 0.5;
23 }

Callers 15

primitive.test.tsFile · 0.80
bigint.test.tsFile · 0.80
readonly.test.tsFile · 0.80
coerce.test.tsFile · 0.80
index.test.tsFile · 0.80
primitive.test.tsFile · 0.80
bigint.test.tsFile · 0.80
readonly.test.tsFile · 0.80
coerce.test.tsFile · 0.80

Calls

no outgoing calls

Tested by 2

stringToBigIntFunction · 0.64
numberToBigIntFunction · 0.64