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
In hono's type definition, the 1st arg of c.body() is defined as Data | null, but if undefined given, it works on node (undici).
So, there is any problem to accept undefined in the 1st arg?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In hono's type definition, the 1st arg of
c.body()
is defined asData | null
, but ifundefined
given, it works on node (undici).So, there is any problem to accept
undefined
in the 1st arg?Beta Was this translation helpful? Give feedback.
All reactions