Skip to content

Commit

Permalink
fix: make exports compatible with --isolatedModules (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-osullivan authored and gr2m committed Nov 19, 2019
1 parent aac4bc1 commit 365a55b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 36 deletions.
19 changes: 1 addition & 18 deletions src/RequestInterface.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { EndpointInterface } from "./EndpointInterface";
import { EndpointOptions } from "./EndpointOptions";
import { OctokitResponse } from "./OctokitResponse";
import { RequestParameters } from "./RequestParameters";
import { ResponseHeaders } from "./ResponseHeaders";
import { Route } from "./Route";
import { Url } from "./Url";

export interface RequestInterface {
/**
Expand Down Expand Up @@ -33,19 +32,3 @@ export interface RequestInterface {
*/
endpoint: EndpointInterface;
}

export type OctokitResponse<T> = {
headers: ResponseHeaders;
/**
* http response code
*/
status: number;
/**
* URL of response after all redirects
*/
url: Url;
/**
* This is the data you would see in https://developer.Octokit.com/v3/
*/
data: T;
};
36 changes: 18 additions & 18 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
export { AuthInterface } from "./AuthInterface";
export { EndpointDefaults } from "./EndpointDefaults";
export { EndpointInterface } from "./EndpointInterface";
export { EndpointOptions } from "./EndpointOptions";
export { Fetch } from "./Fetch";
export { OctokitResponse } from "./OctokitResponse";
export { RequestHeaders } from "./RequestHeaders";
export { RequestInterface } from "./RequestInterface";
export { RequestMethod } from "./RequestMethod";
export { RequestOptions } from "./RequestOptions";
export { RequestParameters } from "./RequestParameters";
export { RequestRequestOptions } from "./RequestRequestOptions";
export { ResponseHeaders } from "./ResponseHeaders";
export { Route } from "./Route";
export { Signal } from "./Signal";
export { StrategyInterface } from "./StrategyInterface";
export { Url } from "./Url";
export { VERSION } from "./VERSION";
export * from "./AuthInterface";
export * from "./EndpointDefaults";
export * from "./EndpointInterface";
export * from "./EndpointOptions";
export * from "./Fetch";
export * from "./OctokitResponse";
export * from "./RequestHeaders";
export * from "./RequestInterface";
export * from "./RequestMethod";
export * from "./RequestOptions";
export * from "./RequestParameters";
export * from "./RequestRequestOptions";
export * from "./ResponseHeaders";
export * from "./Route";
export * from "./Signal";
export * from "./StrategyInterface";
export * from "./Url";
export * from "./VERSION";

0 comments on commit 365a55b

Please sign in to comment.