linesValidator() — supabase Function Reference
Architecture documentation for the linesValidator() function in CodeSample.ts from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/docs/features/directives/CodeSample.ts lines 58–69
.transform((v, ctx) => {
try {
const array = JSON.parse(v)
return linesSchema.parse(array)
} catch (e) {
ctx.addIssue({
code: z.ZodIssueCode.custom,
message: 'Lines should be an array of [number, number] tuples',
})
return z.NEVER
}
})
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free