-
-
Notifications
You must be signed in to change notification settings - Fork 80
/
index.d.ts
29 lines (28 loc) · 883 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Type definitions for ember-fetch
// Project: https://github.com/ember-cli/ember-fetch
// Definitions by: Toran Billups <https://github.com/toranb>, Thomas Wang<https://github.com/xg-wang>
/// <reference lib="es2015" />
/// <reference lib="dom" />
import RSVP from 'rsvp';
export default function fetch(
input: URL | RequestInfo,
init?: RequestInit
): RSVP.Promise<Response>;
export const Headers: {
prototype: Headers;
new (init?: HeadersInit): Headers;
};
export const Request: {
prototype: Request;
new (input: RequestInfo, init?: RequestInit): Request;
};
export const Response: {
prototype: Response;
new (body?: BodyInit | null, init?: ResponseInit): Response;
error(): Response;
redirect(url: string, status?: number): Response;
};
export const AbortController: {
prototype: AbortController;
new (): AbortController;
};