getItemsForBase() — ui Function Reference
Architecture documentation for the getItemsForBase() function in api.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 54b6f66a_abaf_8a0e_08fc_de88598054a3["getItemsForBase()"] 943c084a_a0e9_6180_b716_36b2f3a304b1["api.ts"] 54b6f66a_abaf_8a0e_08fc_de88598054a3 -->|defined in| 943c084a_a0e9_6180_b716_36b2f3a304b1 style 54b6f66a_abaf_8a0e_08fc_de88598054a3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/app/(create)/lib/api.ts lines 8–19
export async function getItemsForBase(base: BaseName) {
const { Index } = await import("@/registry/bases/__index__")
const index = Index[base]
if (!index) {
return []
}
return Object.values(index).filter((item) =>
ALLOWED_ITEM_TYPES.includes(item.type)
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getItemsForBase() do?
getItemsForBase() is a function in the ui codebase, defined in apps/v4/app/(create)/lib/api.ts.
Where is getItemsForBase() defined?
getItemsForBase() is defined in apps/v4/app/(create)/lib/api.ts at line 8.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free