Home / Function/ extractParamTypeAsString() — supabase Function Reference

extractParamTypeAsString() — supabase Function Reference

Architecture documentation for the extractParamTypeAsString() function in legacy.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  a46b7b49_dadb_c4ba_fc38_a1c51fccfb23["extractParamTypeAsString()"]
  bb2e938d_5d19_f784_ec33_1ad931f27295["generateLabelParam()"]
  bb2e938d_5d19_f784_ec33_1ad931f27295 -->|calls| a46b7b49_dadb_c4ba_fc38_a1c51fccfb23
  style a46b7b49_dadb_c4ba_fc38_a1c51fccfb23 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/generator/legacy.ts lines 253–271

function extractParamTypeAsString(paramDefinition) {
  if (paramDefinition.type?.name) {
    return `<code>${paramDefinition.type.name}</code>`
  } else if (paramDefinition.type?.type == 'union') {
    return paramDefinition.type.types
      .map((x) =>
        x.value
          ? `<code>${x.value}</code>`
          : x.name
            ? `<code>${x.name}</code>`
            : x.type
              ? `<code>${x.type}</code>`
              : ''
      )
      .join(' | ')
  }

  return '<code>object</code>'
}

Subdomains

Frequently Asked Questions

What does extractParamTypeAsString() do?
extractParamTypeAsString() is a function in the supabase codebase.
What calls extractParamTypeAsString()?
extractParamTypeAsString() is called by 1 function(s): generateLabelParam.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free