react-restful
Version:
Another liblary for restful resources management for React app.
11 lines (10 loc) • 381 B
TypeScript
import { FetcherProps, Fetcher } from './Fetcher';
import { Store } from './Store';
export declare let storeSymbol: string | symbol;
export declare let fetcherSymbol: string | symbol;
interface RestfulEnvironment {
store: Store;
request: Fetcher['fetchResource'];
}
export declare const setupEnvironment: (options: FetcherProps) => RestfulEnvironment;
export {};