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
This allows explicit undefined value for params, which is invalid JSON since undefined is not a valid JSON value. params?: Json[] | Record<string, Json> | undefined; should be params?: Json[] | Record<string, Json>;.
It seems like superstruct-derived optional always get a | undefined, which makes the resolution less obvious to me.
The text was updated successfully, but these errors were encountered:
The resulting type of
JsonRpcRequest
:This allows explicit
undefined
value forparams
, which is invalid JSON sinceundefined
is not a valid JSON value.params?: Json[] | Record<string, Json> | undefined;
should beparams?: Json[] | Record<string, Json>;
.It seems like
superstruct
-derivedoptional
always get a| undefined
, which makes the resolution less obvious to me.The text was updated successfully, but these errors were encountered: