mergeAlternateParameters() — supabase Function Reference
Architecture documentation for the mergeAlternateParameters() function in Reference.ui.tsx from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD d7f586bf_3c23_4329_d90e_5b64a841fa80["mergeAlternateParameters()"] 0ccd6144_9832_8e13_48e0_422a3dfa0e2b["FnParameterDetails()"] 0ccd6144_9832_8e13_48e0_422a3dfa0e2b -->|calls| d7f586bf_3c23_4329_d90e_5b64a841fa80 22b21a01_80cf_280e_2f86_101c0b9c05c0["isFromTypespec()"] d7f586bf_3c23_4329_d90e_5b64a841fa80 -->|calls| 22b21a01_80cf_280e_2f86_101c0b9c05c0 0d8ae9b2_c5f8_176f_13bd_7227362247f5["applyParameterMergeStrategy()"] d7f586bf_3c23_4329_d90e_5b64a841fa80 -->|calls| 0d8ae9b2_c5f8_176f_13bd_7227362247f5 style d7f586bf_3c23_4329_d90e_5b64a841fa80 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/features/docs/Reference.ui.tsx lines 728–760
function mergeAlternateParameters(
parameters: Array<object>,
altParameters: Array<Array<FunctionParameterType>>
) {
const combinedParameters = parameters.map((parameter) => {
if (!isFromTypespec(parameter)) return parameter
const parameterWithoutType = { ...parameter }
if ('type' in parameterWithoutType) {
delete parameterWithoutType.type
}
for (const alternate of altParameters) {
const match = alternate.find((alternateParam) => {
const alternateWithoutType = { ...alternateParam }
if ('type' in alternateWithoutType) {
delete alternateWithoutType.type
}
return isEqual(parameterWithoutType, alternateWithoutType)
})
if (match) {
// @ts-ignore
parameter = applyParameterMergeStrategy(parameter, match)
}
}
return parameter
})
return combinedParameters
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does mergeAlternateParameters() do?
mergeAlternateParameters() is a function in the supabase codebase.
What does mergeAlternateParameters() call?
mergeAlternateParameters() calls 2 function(s): applyParameterMergeStrategy, isFromTypespec.
What calls mergeAlternateParameters()?
mergeAlternateParameters() is called by 1 function(s): FnParameterDetails.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free