12 lines
331 B
TypeScript
12 lines
331 B
TypeScript
import * as interfaces from './actionTypes';
|
|
import { TypeKeys } from './constants';
|
|
import { fetchRates, CCResponse } from './actionPayloads';
|
|
|
|
export type TFetchCCRates = typeof fetchCCRates;
|
|
export function fetchCCRates(): interfaces.FetchCCRates {
|
|
return {
|
|
type: TypeKeys.RATES_FETCH_CC,
|
|
payload: fetchRates()
|
|
};
|
|
}
|