mirror of
https://github.com/bendtherules/github-delete-unused-repos.git
synced 2026-08-18 13:52:59 +00:00
Fix build errors for non-exported types
This commit is contained in:
+9
-9
@@ -1,7 +1,7 @@
|
|||||||
import * as Octokit from '@octokit/rest';
|
import * as Octokit from '@octokit/rest';
|
||||||
|
|
||||||
// +++ All typescript definitions +++
|
// +++ All typescript definitions +++
|
||||||
interface RequestOptions {
|
export interface RequestOptions {
|
||||||
method: string;
|
method: string;
|
||||||
url: string;
|
url: string;
|
||||||
headers: any;
|
headers: any;
|
||||||
@@ -9,13 +9,13 @@ interface RequestOptions {
|
|||||||
variables?: Variables;
|
variables?: Variables;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Result {
|
export interface Result {
|
||||||
headers: {
|
headers: {
|
||||||
status: string;
|
status: string;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
interface OctokitError {
|
export interface OctokitError {
|
||||||
code: number;
|
code: number;
|
||||||
status: string;
|
status: string;
|
||||||
}
|
}
|
||||||
@@ -38,7 +38,7 @@ export interface OctokitMod extends Octokit {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Variables {
|
export interface Variables {
|
||||||
[key: string]: any;
|
[key: string]: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -46,7 +46,7 @@ export interface ResponseWithDataArray<T> {
|
|||||||
data: T[];
|
data: T[];
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ResponseWithMetaLink {
|
export interface ResponseWithMetaLink {
|
||||||
meta: {
|
meta: {
|
||||||
link: string;
|
link: string;
|
||||||
};
|
};
|
||||||
@@ -97,7 +97,7 @@ export interface RepoFromGetUserRepo {
|
|||||||
url: string;
|
url: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface OwnerFromGetUserRepo {
|
export interface OwnerFromGetUserRepo {
|
||||||
avatar_url: string;
|
avatar_url: string;
|
||||||
gravatar_id: string;
|
gravatar_id: string;
|
||||||
html_url: string;
|
html_url: string;
|
||||||
@@ -109,7 +109,7 @@ interface OwnerFromGetUserRepo {
|
|||||||
|
|
||||||
export type OwnerFromGetContributors = OwnerFromGetUserRepo;
|
export type OwnerFromGetContributors = OwnerFromGetUserRepo;
|
||||||
|
|
||||||
enum UserType {
|
export enum UserType {
|
||||||
User = 'User',
|
User = 'User',
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -118,12 +118,12 @@ export interface BranchFromGetBranches {
|
|||||||
commit: CommitFromGetBranches;
|
commit: CommitFromGetBranches;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface CommitFromGetBranches {
|
export interface CommitFromGetBranches {
|
||||||
sha: string;
|
sha: string;
|
||||||
url: string;
|
url: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface RepoFromGetRepo {
|
export interface RepoFromGetRepo {
|
||||||
parent: RepoFromGetUserRepo;
|
parent: RepoFromGetUserRepo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user