Home / Function/ parseReflectionType() — supabase Function Reference

parseReflectionType() — supabase Function Reference

Architecture documentation for the parseReflectionType() function in Reference.typeSpec.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  5bbc223c_f2f3_bb5d_0506_1f8279332a2d["parseReflectionType()"]
  ba4cce53_051e_d69f_25a4_55d567b053b3["parseType()"]
  ba4cce53_051e_d69f_25a4_55d567b053b3 -->|calls| 5bbc223c_f2f3_bb5d_0506_1f8279332a2d
  d92b9cf8_5353_8348_7da5_f0a2ee5203bc["parseTypeLiteral()"]
  5bbc223c_f2f3_bb5d_0506_1f8279332a2d -->|calls| d92b9cf8_5353_8348_7da5_f0a2ee5203bc
  style 5bbc223c_f2f3_bb5d_0506_1f8279332a2d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/features/docs/Reference.typeSpec.ts lines 869–891

function parseReflectionType(
  type: any,
  map: Map<number, any>,
  typeArguments?: any,
  _debug = false
): TypeDetails | undefined {
  if (!type.declaration) return undefined

  let res: TypeDetails | undefined
  switch ((type.declaration.kindString ?? type.declaration.variant).toLowerCase()) {
    case 'type literal':
      res = parseTypeLiteral(type, map, typeArguments)
      break
    case 'declaration':
      if (type.declaration.kind === KIND_TYPE_LITERAL) {
        res = parseTypeLiteral(type, map, typeArguments)
      }
    default:
      break
  }

  return res
}

Subdomains

Called By

Frequently Asked Questions

What does parseReflectionType() do?
parseReflectionType() is a function in the supabase codebase.
What does parseReflectionType() call?
parseReflectionType() calls 1 function(s): parseTypeLiteral.
What calls parseReflectionType()?
parseReflectionType() is called by 1 function(s): parseType.

Analyze Your Own Codebase

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

Try Supermodel Free