writeTypes() — supabase Function Reference
Architecture documentation for the writeTypes() function in Reference.generated.script.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 73bee596_aa0b_521a_8b08_2bfcd6437fbe["writeTypes()"] 35786dbf_245c_1618_e006_4cf71f59bd93["run()"] 35786dbf_245c_1618_e006_4cf71f59bd93 -->|calls| 73bee596_aa0b_521a_8b08_2bfcd6437fbe 0c934478_02bc_5286_db62_6cd5baf4ba80["parseTypeSpec()"] 73bee596_aa0b_521a_8b08_2bfcd6437fbe -->|calls| 0c934478_02bc_5286_db62_6cd5baf4ba80 2ba77918_c71f_00b4_2b40_c0b152543573["join()"] 73bee596_aa0b_521a_8b08_2bfcd6437fbe -->|calls| 2ba77918_c71f_00b4_2b40_c0b152543573 style 73bee596_aa0b_521a_8b08_2bfcd6437fbe fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/features/docs/Reference.generated.script.ts lines 158–171
async function writeTypes() {
const types = await parseTypeSpec()
await writeFile(
join(GENERATED_DIRECTORY, 'typeSpec.json'),
JSON.stringify(types, (key, value) => {
if (key === 'methods' || key === 'variables') {
return Object.fromEntries(value.entries())
} else {
return value
}
})
)
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does writeTypes() do?
writeTypes() is a function in the supabase codebase.
What does writeTypes() call?
writeTypes() calls 2 function(s): join, parseTypeSpec.
What calls writeTypes()?
writeTypes() is called by 1 function(s): run.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free