views
Creates a view registry from a name → component map.
import { views } from '@threadplane/chat';Declaration · overload 1
export declare function views(map: Record<string, Type<unknown> | RenderViewEntry>): ViewRegistry;Parameters
map· requiredRecord<string, Type<unknown> | RenderViewEntry>
Returns
ViewRegistryExamples
const registry = views({ metric: MetricCardComponent, chart: ChartComponent });
// providers: [provideViews(registry)]