GenesysGo / shadow-drive

Apache License 2.0
71 stars 22 forks source link

Add correct edit response type #68

Closed bntzio closed 1 year ago

bntzio commented 2 years ago

When uploading a file, the response comes as the following type:

finalized_locations: Array<string>;
message: string;
upload_errors: Array<UploadError>;

When editing an already existing file, the response comes as: { finalized_location: string }

This PR adds the correct type so that clients knows what will they receive in each response.