@@ -57,7 +57,7 @@ const DOWNLOADING_INITIAL_VALUE = 60;
5757const IN_PROGRESS_TO_DOWNLOADING_STEP = DOWNLOADING_INITIAL_VALUE - IN_PROGRESS_INITIAL_VALUE ;
5858const PULL_IMPORTING_INITIAL_VALUE = 80 ;
5959
60- export function isKeyPulling ( key : PullStateProgressInfo [ 'key' ] | undefined ) : boolean {
60+ function isKeyPulling ( key : PullStateProgressInfo [ 'key' ] | undefined ) : boolean {
6161 const pullingStateKeys : PullStateProgressInfo [ 'key' ] [ ] = [
6262 'in-progress' ,
6363 'downloading' ,
@@ -69,7 +69,7 @@ export function isKeyPulling( key: PullStateProgressInfo[ 'key' ] | undefined ):
6969 return pullingStateKeys . includes ( key ) ;
7070}
7171
72- export function isKeyPushing ( key : PushStateProgressInfo [ 'key' ] | undefined ) : boolean {
72+ function isKeyPushing ( key : PushStateProgressInfo [ 'key' ] | undefined ) : boolean {
7373 const pushingStateKeys : PushStateProgressInfo [ 'key' ] [ ] = [
7474 'creatingBackup' ,
7575 'uploading' ,
@@ -83,15 +83,15 @@ export function isKeyPushing( key: PushStateProgressInfo[ 'key' ] | undefined ):
8383 return pushingStateKeys . includes ( key ) ;
8484}
8585
86- export function isKeyUploadingPaused ( key : PushStateProgressInfo [ 'key' ] | undefined ) : boolean {
86+ function isKeyUploadingPaused ( key : PushStateProgressInfo [ 'key' ] | undefined ) : boolean {
8787 return key === 'uploadingPaused' ;
8888}
8989
90- export function isKeyUploading ( key : PushStateProgressInfo [ 'key' ] | undefined ) : boolean {
90+ function isKeyUploading ( key : PushStateProgressInfo [ 'key' ] | undefined ) : boolean {
9191 return key === 'uploading' ;
9292}
9393
94- export function isKeyImporting ( key : PushStateProgressInfo [ 'key' ] | undefined ) : boolean {
94+ function isKeyImporting ( key : PushStateProgressInfo [ 'key' ] | undefined ) : boolean {
9595 const pushingStateKeys : PushStateProgressInfo [ 'key' ] [ ] = [
9696 'creatingRemoteBackup' ,
9797 'applyingChanges' ,
@@ -103,25 +103,25 @@ export function isKeyImporting( key: PushStateProgressInfo[ 'key' ] | undefined
103103 return pushingStateKeys . includes ( key ) ;
104104}
105105
106- export function isKeyFinished (
106+ function isKeyFinished (
107107 key : PullStateProgressInfo [ 'key' ] | PushStateProgressInfo [ 'key' ] | undefined
108108) : boolean {
109109 return key === 'finished' ;
110110}
111111
112- export function isKeyFailed (
112+ function isKeyFailed (
113113 key : PullStateProgressInfo [ 'key' ] | PushStateProgressInfo [ 'key' ] | undefined
114114) : boolean {
115115 return key === 'failed' ;
116116}
117117
118- export function isKeyCancelled (
118+ function isKeyCancelled (
119119 key : PullStateProgressInfo [ 'key' ] | PushStateProgressInfo [ 'key' ] | undefined
120120) : boolean {
121121 return key === 'cancelled' ;
122122}
123123
124- export function getPushUploadPercentage (
124+ function getPushUploadPercentage (
125125 statusKey : PushStateProgressInfo [ 'key' ] | undefined ,
126126 uploadProgress : number | undefined
127127) : number | null {
0 commit comments