UNPKG

core-native

Version:

A lightweight framework based on React Native + Redux + Redux Saga, in strict TypeScript.

10 lines (9 loc) 635 B
/// <reference types="react-native" /> declare type RequestInterceptor = (request: RequestInit) => void | Promise<void>; declare type ResponseInterceptor = (response: Response) => void | Promise<void>; export declare function setRequestInterceptor(_: RequestInterceptor): void; export declare function setResponseInterceptor(_: ResponseInterceptor): void; export declare function ajax<TRequest, TResponse>(method: string, path: string, pathParams: object, request: TRequest): Promise<TResponse>; export declare function url(pattern: string, params: object): string; export declare function queryString(params: any): string; export {};