Issue:
The KnownKeys type used in the PickedUploadApiOptions type definition might not correctly extract the known keys from UploadApiOptions. This could result in an empty object when using Pick to select certain properties from UploadApiOptions.
Solution:
To address this issue, consider using a different approach to define the KnownKeys type. Update the KnownKeys type definition to use a conditional type that checks if the key is assignable to string or number:
Issue: The KnownKeys type used in the PickedUploadApiOptions type definition might not correctly extract the known keys from UploadApiOptions. This could result in an empty object when using Pick to select certain properties from UploadApiOptions.
Solution: To address this issue, consider using a different approach to define the KnownKeys type. Update the KnownKeys type definition to use a conditional type that checks if the key is assignable to string or number: