booleanValidator() — supabase Function Reference
Architecture documentation for the booleanValidator() function in CodeSample.ts from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/docs/features/directives/CodeSample.ts lines 77–81
const booleanValidator = z.union([z.boolean(), z.string(), z.undefined()]).transform((v) => {
if (typeof v === 'boolean') return v
if (typeof v === 'string') return v === 'true'
return false
})
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free