Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: use uploadStarted: null instead of false #1628

Merged
merged 2 commits into from
Jun 4, 2019
Merged

Conversation

goto-bus-stop
Copy link
Contributor

Fixes #1615

We can still do if(f.progress.uploadStarted), but now it is null (absence of timestamp) or a number (a timestamp). This is slightly better than the old situation, where it was false or a number, where you might wonder what true could mean (it meant nothing).

Fixes typings to accept both.

@arturi
Copy link
Contributor

arturi commented Jun 4, 2019

Looks good, tested locally!

@arturi arturi merged commit a508cf7 into master Jun 4, 2019
@arturi arturi deleted the fix/type-uploadstarted branch June 4, 2019 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect typing on UppyFile.uploadStarted.
2 participants