Skip to content

Commit 1911d96

Browse files
committed
fmt
1 parent 634c083 commit 1911d96

1 file changed

Lines changed: 30 additions & 27 deletions

File tree

src/github/graphql/queries.ts

Lines changed: 30 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,37 @@
11
// Octokit types are messy. To avoid adding any (peer)dependencies we rely on TS structural typing here
22
export type GitHubClient = {
3-
graphql: <T>(query: string, variables?: Record<string, unknown>) => Promise<T>;
4-
rest: {
5-
git: {
6-
createRef: (params: {
7-
owner: string;
8-
repo: string;
9-
ref: string;
10-
sha: string;
11-
}) => Promise<{ data: { node_id?: string } }>;
12-
updateRef: (params: {
13-
owner: string;
14-
repo: string;
15-
ref: string;
16-
sha: string;
17-
force?: boolean;
18-
}) => Promise<{ data: { node_id?: string } }>;
19-
deleteRef: (params: {
20-
owner: string;
21-
repo: string;
22-
ref: string;
23-
}) => Promise<unknown>;
24-
getRef?: (params: {
25-
owner: string;
26-
repo: string;
27-
ref: string;
28-
}) => Promise<unknown>;
29-
};
3+
graphql: <T>(
4+
query: string,
5+
variables?: Record<string, unknown>,
6+
) => Promise<T>;
7+
rest: {
8+
git: {
9+
createRef: (params: {
10+
owner: string;
11+
repo: string;
12+
ref: string;
13+
sha: string;
14+
}) => Promise<{ data: { node_id?: string } }>;
15+
updateRef: (params: {
16+
owner: string;
17+
repo: string;
18+
ref: string;
19+
sha: string;
20+
force?: boolean;
21+
}) => Promise<{ data: { node_id?: string } }>;
22+
deleteRef: (params: {
23+
owner: string;
24+
repo: string;
25+
ref: string;
26+
}) => Promise<unknown>;
27+
getRef?: (params: {
28+
owner: string;
29+
repo: string;
30+
ref: string;
31+
}) => Promise<unknown>;
3032
};
3133
};
34+
};
3235

3336
import type {
3437
CreateCommitOnBranchMutation,

0 commit comments

Comments
 (0)