File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// Octokit types are messy. To avoid adding any (peer)dependencies we rely on TS structural typing here
22export 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
3336import type {
3437 CreateCommitOnBranchMutation ,
You can’t perform that action at this time.
0 commit comments