Skip to content

Commit

Permalink
feat(types): convert type 'OctokitOptions' to interface (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
oscard0m committed Mar 3, 2022
1 parent 5c6c3a0 commit 0151ef0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types.ts
Expand Up @@ -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;
Expand All @@ -22,7 +22,7 @@ export type OctokitOptions = {
request?: OctokitTypes.RequestRequestOptions;
timeZone?: string;
[option: string]: any;
};
}

export type Constructor<T> = new (...args: any[]) => T;

Expand Down

0 comments on commit 0151ef0

Please sign in to comment.