You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
readRawBody is meant to return a Buffer when encoding is set to false, but it always returns Promise<string | Buffer | undefined>. The reason is that Encoding extends false always returns false. The function likely needs a generic type parameter. Also, looking at the source code, the function seems to always return a Promise, and never returns a Buffer when encoding is set.
readRawBody
is meant to return aBuffer
when encoding is set tofalse
, but it always returnsPromise<string | Buffer | undefined>
. The reason is thatEncoding extends false
always returnsfalse
. The function likely needs a generic type parameter. Also, looking at the source code, the function seems to always return aPromise
, and never returns aBuffer
when encoding is set.h3/src/utils/body.ts
Line 18 in f78778c
The following type declaration should be correct
The text was updated successfully, but these errors were encountered: