generateLabelParam() — supabase Function Reference
Architecture documentation for the generateLabelParam() function in legacy.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD bb2e938d_5d19_f784_ec33_1ad931f27295["generateLabelParam()"] d5b5e20b_fb94_1a99_c31e_76fe6e3a378e["recurseThroughParams()"] d5b5e20b_fb94_1a99_c31e_76fe6e3a378e -->|calls| bb2e938d_5d19_f784_ec33_1ad931f27295 c1960e9a_fc3b_1e0f_4af2_e5f580cc6ae4["tsDocCommentToMdComment()"] bb2e938d_5d19_f784_ec33_1ad931f27295 -->|calls| c1960e9a_fc3b_1e0f_4af2_e5f580cc6ae4 a46b7b49_dadb_c4ba_fc38_a1c51fccfb23["extractParamTypeAsString()"] bb2e938d_5d19_f784_ec33_1ad931f27295 -->|calls| a46b7b49_dadb_c4ba_fc38_a1c51fccfb23 style bb2e938d_5d19_f784_ec33_1ad931f27295 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/generator/legacy.ts lines 233–251
function generateLabelParam(param: any) {
let labelParams = {}
if (typeof param.type === 'string' && param.type === 'literal') {
labelParams = {
name: param.name ?? param.value,
isOptional: !!param.flags?.isOptional,
type: param.type,
description: param.comment ? tsDocCommentToMdComment(param.comment) : null,
}
} else {
labelParams = {
name: param.name ?? extractParamTypeAsString(param),
isOptional: !!param.flags?.isOptional,
type: extractParamTypeAsString(param),
description: param.comment ? tsDocCommentToMdComment(param.comment) : null,
}
}
return labelParams
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does generateLabelParam() do?
generateLabelParam() is a function in the supabase codebase.
What does generateLabelParam() call?
generateLabelParam() calls 2 function(s): extractParamTypeAsString, tsDocCommentToMdComment.
What calls generateLabelParam()?
generateLabelParam() is called by 1 function(s): recurseThroughParams.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free