webext-redux icon indicating copy to clipboard operation
webext-redux copied to clipboard

Why not set dispatch type as async ?

Open adelin-b opened this issue 5 years ago • 1 comments
trafficstars

// index.d.ts
  /**
   * Dispatch an action to the background using messaging passing
   * @param data The action data to dispatch
   * 
   * Note: Although the return type is specified as the action, react-chrome-redux will
   * wrap the result in a responsePromise that will resolve/reject based on the
   * action response from the background page
   */
  dispatch<A>(data: A): A;

Why not doing dispatch<A>(data: A): Promise<A>

adelin-b avatar Oct 19 '20 19:10 adelin-b

Any update on this one?

chan-dev avatar Nov 03 '22 01:11 chan-dev