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