Home / Function/ getDtsContent() — astro Function Reference

getDtsContent() — astro Function Reference

Architecture documentation for the getDtsContent() function in typegen.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  db360cd6_f28e_70ed_0a28_57966d7b02ad["getDtsContent()"]
  cfd4bd09_8623_b9e9_1f9b_643824244dcb["typegen.ts"]
  db360cd6_f28e_70ed_0a28_57966d7b02ad -->|defined in| cfd4bd09_8623_b9e9_1f9b_643824244dcb
  0cdd3045_dd6d_ed9f_790e_b712c12c2645["generateTableType()"]
  db360cd6_f28e_70ed_0a28_57966d7b02ad -->|calls| 0cdd3045_dd6d_ed9f_790e_b712c12c2645
  style db360cd6_f28e_70ed_0a28_57966d7b02ad fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/db/src/core/integration/typegen.ts lines 4–13

export function getDtsContent(tables: DBTables) {
	const content = `// This file is generated by Astro DB
declare module 'astro:db' {
${Object.entries(tables)
	.map(([name, table]) => generateTableType(name, table))
	.join('\n')}
}
`;
	return content;
}

Domain

Subdomains

Frequently Asked Questions

What does getDtsContent() do?
getDtsContent() is a function in the astro codebase, defined in packages/db/src/core/integration/typegen.ts.
Where is getDtsContent() defined?
getDtsContent() is defined in packages/db/src/core/integration/typegen.ts at line 4.
What does getDtsContent() call?
getDtsContent() calls 1 function(s): generateTableType.

Analyze Your Own Codebase

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

Try Supermodel Free