@@ -7,7 +7,7 @@ import {setFailure} from './helpers';
77
88const context = github . context ;
99
10- const isTrue = ( variable ) => {
10+ const isTrue = ( variable : string ) : boolean => {
1111 const lowercase = variable . toLowerCase ( ) ;
1212 return (
1313 lowercase === '1' ||
@@ -18,7 +18,7 @@ const isTrue = (variable) => {
1818 ) ;
1919} ;
2020
21- const getGitService = ( ) => {
21+ const getGitService = ( ) : string => {
2222 const overrideGitService = core . getInput ( 'git_service' ) ;
2323 const serverUrl = process . env . GITHUB_SERVER_URL ;
2424 if ( overrideGitService ) {
@@ -29,7 +29,7 @@ const getGitService = () => {
2929 return 'github' ;
3030} ;
3131
32- const getToken = async ( ) => {
32+ const getToken = async ( ) : Promise < string > => {
3333 let token = core . getInput ( 'token' ) ;
3434 let url = core . getInput ( 'url' ) ;
3535 const useOIDC = isTrue ( core . getInput ( 'use_oidc' ) ) ;
@@ -51,7 +51,11 @@ const getToken = async () => {
5151 return token ;
5252} ;
5353
54- const buildCommitExec = async ( ) => {
54+ const buildCommitExec = async ( ) : Promise < {
55+ commitExecArgs : any [ ] ;
56+ commitOptions : any ;
57+ commitCommand : string ;
58+ } > => {
5559 const commitParent = core . getInput ( 'commit_parent' ) ;
5660 const gitService = getGitService ( ) ;
5761 const overrideBranch = core . getInput ( 'override_branch' ) ;
@@ -116,7 +120,10 @@ const buildCommitExec = async () => {
116120 return { commitExecArgs, commitOptions, commitCommand} ;
117121} ;
118122
119- const buildGeneralExec = ( ) => {
123+ const buildGeneralExec = ( ) : {
124+ args : any [ ] ;
125+ verbose : boolean ;
126+ } => {
120127 const codecovYmlPath = core . getInput ( 'codecov_yml_path' ) ;
121128 const url = core . getInput ( 'url' ) ;
122129 const verbose = isTrue ( core . getInput ( 'verbose' ) ) ;
@@ -134,7 +141,11 @@ const buildGeneralExec = () => {
134141 return { args, verbose} ;
135142} ;
136143
137- const buildReportExec = async ( ) => {
144+ const buildReportExec = async ( ) : Promise < {
145+ reportExecArgs : any [ ] ;
146+ reportOptions : any ;
147+ reportCommand : string ;
148+ } > => {
138149 const gitService = getGitService ( ) ;
139150 const overrideCommit = core . getInput ( 'override_commit' ) ;
140151 const overridePr = core . getInput ( 'override_pr' ) ;
@@ -191,7 +202,15 @@ const buildReportExec = async () => {
191202 return { reportExecArgs, reportOptions, reportCommand} ;
192203} ;
193204
194- const buildUploadExec = async ( ) => {
205+ const buildUploadExec = async ( ) : Promise < {
206+ uploadExecArgs : any [ ] ;
207+ uploadOptions : any ;
208+ disableSafeDirectory : boolean ;
209+ failCi : boolean ;
210+ os : string ;
211+ uploaderVersion : string ;
212+ uploadCommand : string ;
213+ } > => {
195214 const disableFileFixes = isTrue ( core . getInput ( 'disable_file_fixes' ) ) ;
196215 const disableSafeDirectory = isTrue ( core . getInput ( 'disable_safe_directory' ) ) ;
197216 const disableSearch = isTrue ( core . getInput ( 'disable_search' ) ) ;
0 commit comments