diff --git a/src/types.ts b/src/types.ts index 96d1ef6b7..0d0189f6a 100644 --- a/src/types.ts +++ b/src/types.ts @@ -5,7 +5,7 @@ import { Octokit } from "."; export type RequestParameters = OctokitTypes.RequestParameters; -export type OctokitOptions = { +export interface OctokitOptions { // TODO: add types for authStrategy & auth options and octokit.auth() method, // see https://tinyurl.com/typescript-auth-strategies authStrategy?: any; @@ -22,7 +22,7 @@ export type OctokitOptions = { request?: OctokitTypes.RequestRequestOptions; timeZone?: string; [option: string]: any; -}; +} export type Constructor = new (...args: any[]) => T;