diff --git a/src/index.ts b/src/index.ts index facdfc3..9725588 100644 --- a/src/index.ts +++ b/src/index.ts @@ -20,7 +20,7 @@ export class RequestError extends Error { /** * Response object if a response was received */ - response?: OctokitResponse; + response?: OctokitResponse | undefined; constructor( message: string, diff --git a/src/types.ts b/src/types.ts index 4e0e5f6..a971a5a 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,6 +1,6 @@ import type { RequestOptions, OctokitResponse } from "@octokit/types"; export type RequestErrorOptions = { - response?: OctokitResponse; + response?: OctokitResponse | undefined; request: RequestOptions; };