Mapped Types Not Inferring From Promise Correctly
TS mapped types not behaving as expected on promise inference
Desired DX
Package types
Currently have "unknown" coming through in the onUpload type. If I manually define the type on request (i.e.
Failing to get the type to infer off Promise<T> to the onUpload input
Desired DX
Package types
Currently have "unknown" coming through in the onUpload type. If I manually define the type on request (i.e.
onUpload: async (request: {metadata: {userId: string}})), it will "backfill" correctlyFailing to get the type to infer off Promise<T> to the onUpload input
