8 lines
230 B
TypeScript

// Maybe this won't be necessary after this is merged:
// https://github.com/Microsoft/TypeScript/pull/29478
export interface IAction<T = any, ActionType extends string = string> {
payload: Promise<T> | T,
type: ActionType
}