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