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