@statechannels/client-api-schema > isJsonRpcNotification
isJsonRpcNotification() function
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Type guard for JsonRpcNotification
Signature:
export declare function isJsonRpcNotification<Name extends string, Params extends object>(message: object): message is JsonRpcNotification<Name, Params>;
Parameters
Parameter | Type | Description |
---|---|---|
message | object |
Returns:
message is JsonRpcNotification<Name, Params>
true if the message is a JSON-RPC notification, false otherwise