This is an example of a payload object with logo and name fields.
payload = {
logo: // type is Blob
name: // type is string
}
function save({ logo, name }) {
//
}
Now, when calling the save function with the payload object:
save(payload)
The question arises: can we rename the 'logo' field to 'file' and also define types for both fields simultaneously when destructuring an object?