UNPKG

ts-foursquare

Version:
23 lines (22 loc) 985 B
import { Observable } from 'rxjs/internal/Observable'; import { EApiDefaultParameters } from '../constants/api'; import { IConfigParams } from '../standalone'; import { GetLocationSearchProps } from '../utils/url'; declare type EnhancedFetchProps = { pathname: string; } & Partial<GetLocationSearchProps> & IConfigParams; export declare const processFetchResponse: <TResponse = any>(response: Response) => Promise<TResponse> | Observable<Error>; export declare const processFetchError: (err: Error) => Observable<Error>; export declare const getDefaultRequestParameters: ({ config }: IConfigParams) => { oauth_token: string; v: EApiDefaultParameters; client_id?: undefined; client_secret?: undefined; } | { client_id: string; client_secret: string; v: EApiDefaultParameters; oauth_token?: undefined; }; export declare const enhancedFetch: ({ config, params, pathname, }: EnhancedFetchProps) => Observable<Response>; export {};