Home / Function/ parseTypeInternals() — supabase Function Reference

parseTypeInternals() — supabase Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  a2ee5574_56fa_afb2_fc20_7c07cd7a7dba["parseTypeInternals()"]
  d92b9cf8_5353_8348_7da5_f0a2ee5203bc["parseTypeLiteral()"]
  d92b9cf8_5353_8348_7da5_f0a2ee5203bc -->|calls| a2ee5574_56fa_afb2_fc20_7c07cd7a7dba
  d105b729_ca48_607f_7baa_fa9d3ca5ec8f["parseInterface()"]
  d105b729_ca48_607f_7baa_fa9d3ca5ec8f -->|calls| a2ee5574_56fa_afb2_fc20_7c07cd7a7dba
  36cc7948_235b_7eb1_80a2_01fd4cf266cf["parseInternalProperty()"]
  a2ee5574_56fa_afb2_fc20_7c07cd7a7dba -->|calls| 36cc7948_235b_7eb1_80a2_01fd4cf266cf
  0ebbf781_9122_475b_4149_017f2ce9e2eb["parseSignature()"]
  a2ee5574_56fa_afb2_fc20_7c07cd7a7dba -->|calls| 0ebbf781_9122_475b_4149_017f2ce9e2eb
  f273b0f2_482b_4163_b404_13bc5e9aca2a["nameOrAnonymous()"]
  a2ee5574_56fa_afb2_fc20_7c07cd7a7dba -->|calls| f273b0f2_482b_4163_b404_13bc5e9aca2a
  95c1d699_db8a_dd96_1436_bf88ec23669b["normalizeComment()"]
  a2ee5574_56fa_afb2_fc20_7c07cd7a7dba -->|calls| 95c1d699_db8a_dd96_1436_bf88ec23669b
  style a2ee5574_56fa_afb2_fc20_7c07cd7a7dba fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/features/docs/Reference.typeSpec.ts lines 979–1004

function parseTypeInternals(elem: any, map: Map<number, any>, typeArguments?: any) {
  switch ((elem.kindString || elem.variant).toLowerCase()) {
    case 'property':
    case 'declaration':
      return parseInternalProperty(elem, map, typeArguments)
    case 'method':
      if (elem.signatures?.[0]) {
        const { params, ret, comment } = parseSignature(elem.signatures?.[0], map)
        const res = {
          type: 'function',
          name: nameOrAnonymous(elem),
          params,
          ret,
          comment,
        } as CustomFunctionType

        if (elem.comment) {
          res.comment = { ...normalizeComment(res.comment), ...normalizeComment(elem.comment) }
        }

        return res
      }
    default:
      return undefined
  }
}

Subdomains

Frequently Asked Questions

What does parseTypeInternals() do?
parseTypeInternals() is a function in the supabase codebase.
What does parseTypeInternals() call?
parseTypeInternals() calls 4 function(s): nameOrAnonymous, normalizeComment, parseInternalProperty, parseSignature.
What calls parseTypeInternals()?
parseTypeInternals() is called by 2 function(s): parseInterface, parseTypeLiteral.

Analyze Your Own Codebase

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

Try Supermodel Free