flow_union.js 501 B

1234567891011121314151617181920
  1. type UploadState<E, EM, D>
  2. // The upload hasnt begun yet
  3. = {type: "Not_begun"}
  4. // The upload timed out
  5. | {type: "Timed_out"}
  6. // Failed somewhere on the line
  7. | {type: "Failed", error: E, errorMsg: EM}
  8. // Uploading to aws3 and CreatePostMutation succeeded
  9. | {type: "Success", data: D};
  10. type UploadState<E, EM, D>
  11. // The upload hasnt begun yet
  12. = A
  13. // The upload timed out
  14. | B
  15. // Failed somewhere on the line
  16. | C
  17. // Uploading to aws3 and CreatePostMutation succeeded
  18. | D;