Skip to content

Commit

Permalink
feat(types): make OctokitResponse an interface (#594)
Browse files Browse the repository at this point in the history
* fix(types): make `OctokitResponse` an interface

* style: prettier
  • Loading branch information
wolfy1339 authored Nov 7, 2023
1 parent 7513ac8 commit 7269dcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OctokitResponse.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ResponseHeaders } from "./ResponseHeaders";
import type { Url } from "./Url";

export type OctokitResponse<T, S extends number = number> = {
export interface OctokitResponse<T, S extends number = number> {
headers: ResponseHeaders;
/**
* http response code
Expand All @@ -15,4 +15,4 @@ export type OctokitResponse<T, S extends number = number> = {
* Response data as documented in the REST API reference documentation at https://docs.github.com/rest/reference
*/
data: T;
};
}

0 comments on commit 7269dcc

Please sign in to comment.