MCPcopy Index your code
hub / github.com/firecrawl/firecrawl / emptyStringAsDefault

Function emptyStringAsDefault

apps/api/src/config.ts:15–16  ·  view source on GitHub ↗
(schema: T)

Source from the content-addressed store, hash-verified

13 z.preprocess(value => (value === "" ? undefined : value), schema.optional());
14
15const emptyStringAsDefault = <T extends z.ZodTypeAny>(schema: T) =>
16 z.preprocess(value => (value === "" ? undefined : value), schema);
17
18// Ethereum address schema: validates 0x followed by 40 hex characters
19const ethereumAddress = z

Callers 1

config.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…