Skip to content

Commit

Permalink
feat(typescript): export types: OctokitPlugin, RequestParameters, Ret…
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Nov 3, 2019
1 parent a438a0b commit 1120add
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ import {
} from "./types";
import { VERSION } from "./version";

export { OctokitOptions } from "./types";
// These exports are necessary for a TypeScript workaround when using Octokit.plugin()
// see https://github.com/octokit/core.js/blob/master/README.md#a-note-on-typescript
export {
OctokitOptions,
OctokitPlugin,
ReturnTypeOf,
Constructor
} from "./types";

export class Octokit {
static defaults(defaults: OctokitOptions) {
Expand Down

0 comments on commit 1120add

Please sign in to comment.