Home / Function/ parseInternalProperty() — supabase Function Reference

parseInternalProperty() — supabase Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  36cc7948_235b_7eb1_80a2_01fd4cf266cf["parseInternalProperty()"]
  a2ee5574_56fa_afb2_fc20_7c07cd7a7dba["parseTypeInternals()"]
  a2ee5574_56fa_afb2_fc20_7c07cd7a7dba -->|calls| 36cc7948_235b_7eb1_80a2_01fd4cf266cf
  f273b0f2_482b_4163_b404_13bc5e9aca2a["nameOrAnonymous()"]
  36cc7948_235b_7eb1_80a2_01fd4cf266cf -->|calls| f273b0f2_482b_4163_b404_13bc5e9aca2a
  ba4cce53_051e_d69f_25a4_55d567b053b3["parseType()"]
  36cc7948_235b_7eb1_80a2_01fd4cf266cf -->|calls| ba4cce53_051e_d69f_25a4_55d567b053b3
  95c1d699_db8a_dd96_1436_bf88ec23669b["normalizeComment()"]
  36cc7948_235b_7eb1_80a2_01fd4cf266cf -->|calls| 95c1d699_db8a_dd96_1436_bf88ec23669b
  style 36cc7948_235b_7eb1_80a2_01fd4cf266cf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/features/docs/Reference.typeSpec.ts lines 1006–1028

function parseInternalProperty(elem: any, map: Map<number, any>, typeArguments?: any) {
  const name = nameOrAnonymous(elem)
  if (!elem.type) {
    return undefined
  }

  const type = parseType(elem.type, map, typeArguments)

  const res = {
    name,
    type,
  } as CustomTypePropertyType

  if (elem.flags?.isOptional) {
    res.isOptional = true
  }

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

  return res
}

Subdomains

Frequently Asked Questions

What does parseInternalProperty() do?
parseInternalProperty() is a function in the supabase codebase.
What does parseInternalProperty() call?
parseInternalProperty() calls 3 function(s): nameOrAnonymous, normalizeComment, parseType.
What calls parseInternalProperty()?
parseInternalProperty() is called by 1 function(s): parseTypeInternals.

Analyze Your Own Codebase

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

Try Supermodel Free