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
{{ message }}
This repository was archived by the owner on Sep 11, 2026. It is now read-only.
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 resulting type of
JsonRpcRequest:This allows explicit
undefinedvalue forparams, which is invalid JSON sinceundefinedis not a valid JSON value.params?: Json[] | Record<string, Json> | undefined;should beparams?: Json[] | Record<string, Json>;.It seems like
superstruct-derivedoptionalalways get a| undefined, which makes the resolution less obvious to me.