/** * * For example: * * class Todos extends Interactions { * initialState = [] * * @thunk * fetchAndAdd({ text }, { dispatch }) { * dispatch(this.add(text, false)); * } * * @reducer * add(state, text, completed = false) { * return [...state, {text, completed}]; * } * } * */ export default function thunk(_target: any, _key?: string, descriptor?: PropertyDescriptor): any;