LogoRobo.js
Packages@robojs/roadmap

CreateCardResult

Type Alias: CreateCardResult

type CreateCardResult = {
  card: RoadmapCard;
  message: string;
  success: boolean;
};

Result of a card creation operation.

Type declaration

NameTypeDescription
cardRoadmapCardThe created card with full details populated by the provider. On failure, this may contain partial data based on the input for debugging purposes.
message?stringOptional message providing additional context about the creation result. Typically used for error messages when success is false.
successbooleanWhether the card creation succeeded.

Remarks

This interface standardizes the response from provider card creation operations, allowing consumers to handle both success and failure cases consistently.

On success, the card field contains the fully populated card as returned by the provider. On failure, the message field provides details about what went wrong.

On this page