@makerinc/react-sdk
    Preparing search index...

    Type Alias MarketChoice

    MarketChoice:
        | { type: "Currencies"; value: CurrencyMarketData }
        | { type: "Countries"; value: CountryMarketData }
        | { type: "NotSupported" }

    Market choice discriminated union

    Idiomatic TypeScript discriminated union. Use .type to narrow and .value to access payload. Follows same pattern as Media and Metadata types.

    if (choice.type === 'Currencies') {
    return choice.value.suggestedCurrency;
    }