_typeSpecSingleton() — supabase Function Reference
Architecture documentation for the _typeSpecSingleton() function in Reference.generated.singleton.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 454d538a_be67_4781_d8d2_b33cc5ab5495["_typeSpecSingleton()"] f6fdb326_7578_ab30_cfb3_855e5c138e6d["getTypeSpec()"] f6fdb326_7578_ab30_cfb3_855e5c138e6d -->|calls| 454d538a_be67_4781_d8d2_b33cc5ab5495 style 454d538a_be67_4781_d8d2_b33cc5ab5495 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/features/docs/Reference.generated.singleton.ts lines 12–28
async function _typeSpecSingleton() {
if (!typeSpec) {
const rawJson = await readFile(
join(process.cwd(), 'features/docs', './generated/typeSpec.json'),
'utf-8'
)
typeSpec = JSON.parse(rawJson, (key, value) => {
if (key === 'methods' || key === 'variables') {
return new Map(Object.entries(value))
} else {
return value
}
})
}
return typeSpec
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _typeSpecSingleton() do?
_typeSpecSingleton() is a function in the supabase codebase.
What calls _typeSpecSingleton()?
_typeSpecSingleton() is called by 1 function(s): getTypeSpec.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free