From b753efbf2514991f89503ac2d1fa1f73a7ae284e Mon Sep 17 00:00:00 2001 From: Gregor Martynus <39992+gr2m@users.noreply.github.com> Date: Tue, 30 Mar 2021 16:51:21 -0700 Subject: [PATCH] fix(typescript): remove `[key: string]: any` from `Octokit` class (#309) Before any property on an `octokit` instance could be used without complaint at build time. With this change, all additional properties on an `octokit` instance need to be added explicitly using plugins --- src/index.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index f40a67ca2..6cc798801 100644 --- a/src/index.ts +++ b/src/index.ts @@ -181,6 +181,4 @@ export class Octokit { // TODO: type `octokit.auth` based on passed options.authStrategy auth: (...args: unknown[]) => Promise; - - [key: string]: any; }