@salla.sa/twilight
Version:
Salla Theme Toolkit, Webcomponents, Events, Requests, Utils
9 lines (8 loc) • 425 B
TypeScript
import {ChangeCurrencyResponse, ListCurrenciesResponse} from "../api/currency";
import {RequestErrorEvent} from "../common";
export default interface CurrencyEvent {
onChanged: (callback: (response: ChangeCurrencyResponse, currency: 'SAR' | string) => void) => void;
onFetched: (callback: (response: ListCurrenciesResponse) => void) => void;
onFailed: RequestErrorEvent;
onFailedToFetch: RequestErrorEvent;
}