You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(types): export minimal types required for the App class (#536)
This resolves issues in consumers of this package getting errors from TypeScript
```
The inferred type of 'App' cannot be named without a reference to '../node_modules/@octokit/app/dist-types/types.js'. This is likely not portable. A type annotation is necessary.
```
Copy file name to clipboardExpand all lines: src/index.ts
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,16 @@ import type {
10
10
EachRepositoryInterface,
11
11
GetInstallationOctokitInterface,
12
12
}from"./types.js";
13
+
14
+
// Export types required for the App class
15
+
// This is in order to fix a TypeScript error in downstream projects:
16
+
// The inferred type of 'App' cannot be named without a reference to '../node_modules/@octokit/app/dist-types/types.js'. This is likely not portable. A type annotation is necessary.
0 commit comments