UNPKG

channelape-sdk

Version:
15 lines (14 loc) 695 B
/// <reference types="q" /> import { AxiosResponse } from 'axios'; export default abstract class RestService { constructor(); /** * @deprecated This method is deprecated because it uses the legacy Q library. * Use {@link mapResponsePromise} */ mapResponseToPromise<T>(requestUrl: string, deferred: Q.Deferred<T>, error: any, response: AxiosResponse, body: T, expectedStatusCode: number): void; /** * For mapping the axios callback event into a promise */ mapResponsePromise<T>(resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, error: any, response: any, body: any, requestUrl: string, expectedStatusCode: number): void; }