@metamask/utils
Advanced tools
Changelog
[3.0.0]
JsonRpcRequest
and JsonRpcNotification
types now include a generic constraint requiring that the Params
type extends the JsonRpcParams
type.JsonRpcSuccess
and JsonRpcResponse
types now include a generic contraint for the Result
type, requiring that it extends the Json
type.unknown
parameters rather than specific types. This should not be breaking except that it may affect type inference for the parameters passed in.assertIsJsonRpcResponse
isJsonRpcResponse
InferWithParams
JsonRpcParams
JsonRpcErrorStruct
JsonRpcFailureStruct
JsonRpcIdStruct
JsonRpcParamsStruct
JsonRpcRequestStruct
JsonRpcResponseStruct
JsonRpcSuccessStruct
JsonRpcVersionStruct
JsonStruct