From 0151ef0f3536441393ab84a4e7d988067ab7ff49 Mon Sep 17 00:00:00 2001 From: Oscar Dominguez Date: Thu, 3 Mar 2022 20:21:04 +0100 Subject: [PATCH] feat(types): convert type 'OctokitOptions' to interface (#450) --- src/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;