Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
690 B
3
Indexable
Never
import { ThunkDispatch } from 'redux-thunk';
import { AnyAction } from 'redux';

export type TypeExpense = {
  currencies: string,
  description: string,
  exchangeRates: any,
  id: number,
  currency: string,
  method: string,
  tag: string,
  value: string,
};

export type TypePayload = {
  email: string,
  senha: string,
};
export type PayloadWallet = {
  expenses: TypeExpense[],
  currencies: string[],
};

export type DadosForm = {
  description: string,
  currencies: string,
  method: string,
  tag: string,
  value: string,
};

export type GlobalType = {
  user: TypePayload,
  wallet: PayloadWallet,
};
export type DispatchThunk = ThunkDispatch<GlobalType, unknown, AnyAction>;