Overload 1
Overload 2
Overload 3
export function createComponentBuilder<Type extends keyof MappedComponentBuilderTypes>( data: APIMessageComponent & { type: Type },): MappedComponentBuilderTypes[Type];
Transforms API data into a component builder
Type Parameters
keyof MappedComponentBuilderTypes Type extends
Parameters
APIMessageComponent & { type: Type } data:
The data to create the component from