Can't understand why if I do this :
export const SET_EXPENSE = 'SET_EXPENSE';
export interface SetExpenseAction {
type: typeof SET_EXPENSE;
expenses: Expense[];
}
when I create the interface I need to give the type only as SET_EXPENSE. typeof(SET_EXPENSE) is string, so why it becomes a values here and limits the type only to that string?