createComponentBuilder
Factory for creating components from API data
declare function createComponentBuilder<T extends keyof MappedComponentTypes>(data: (APIModalComponent | APIMessageComponent) & {
type: T;
}): MappedComponentTypes[T];
declare function createComponentBuilder<T extends keyof MappedComponentTypes>(data: (APIModalComponent | APIMessageComponent) & {
type: T;
}): MappedComponentTypes[T];
Name | Type | Optional | Description |
---|---|---|---|
data | (APIModalComponent | APIMessageComponent) & { type: T; } | No | The api data to transform to a component class |