You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RequestManager.d.ts 635B

12345678910111213
  1. import { Response } from '../models/methods';
  2. import { BaseRequest, ErrorResponse } from '../models/methods/baseMethod';
  3. export default class RequestManager {
  4. private nextId;
  5. private readonly promisesAwaitingResponse;
  6. resolve(id: string | number, response: Response): void;
  7. reject(id: string | number, error: Error): void;
  8. rejectAll(error: Error): void;
  9. createRequest<T extends BaseRequest>(request: T, timeout: number): [string | number, string, Promise<Response>];
  10. handleResponse(response: Partial<Response | ErrorResponse>): void;
  11. private deletePromise;
  12. }
  13. //# sourceMappingURL=RequestManager.d.ts.map