UNPKG

465 BTypeScriptView Raw
1import type { ResponseHeaders } from "./ResponseHeaders";
2import type { Url } from "./Url";
3export interface OctokitResponse<T, S extends number = number> {
4 headers: ResponseHeaders;
5 /**
6 * http response code
7 */
8 status: S;
9 /**
10 * URL of response after all redirects
11 */
12 url: Url;
13 /**
14 * Response data as documented in the REST API reference documentation at https://docs.github.com/rest/reference
15 */
16 data: T;
17}