UNPKG

react-web-native-sketch

Version:

[TODO: We need an overview of how this can be used via npm vs as a local package]

8 lines (7 loc) 299 B
import "whatwg-fetch"; export declare const apiClientMiddleware: <Dispatch extends Function, GlobalState>(baseUrl: string, baseHeaders?: { [key: string]: string; }) => ({ dispatch, getState }: { dispatch: Dispatch; getState: () => GlobalState; }) => (next: any) => (action: any) => any;