Skip to content

Commit

Permalink
fix: re-wrap endpoint response
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Feb 9, 2024
1 parent 0bfc8b1 commit 54c714d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/RequestInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,13 @@ export interface RequestInterface<D extends object = object> {
? Endpoints[R]["parameters"] & O
: StreamBodyOption,
): R extends keyof Endpoints
? Promise<Endpoints[R]["response"]>
? Promise<
OctokitResponse<
ReadableStream<
Exclude<Endpoints[R]["response"], keyof OctokitResponse<any>>
>
>
>
: Promise<OctokitResponse<ReadableStream<any>>>;

/**
Expand Down

0 comments on commit 54c714d

Please sign in to comment.