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