Created
April 24, 2022 17:28
-
-
Save senoritadeveloper01/5316ff4a1e2036392060e57b406344ca to your computer and use it in GitHub Desktop.
File Upload Process Http Event Types (Angular)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
isHttpProgressEvent(event: HttpEvent<unknown>): event is HttpProgressEvent { | |
return ( | |
event.type === HttpEventType.DownloadProgress || | |
event.type === HttpEventType.UploadProgress | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment