( message: JRPCNotification<Params> | JRPCRequest<Params> )
| 76 | * Unlike {@link isJRPCNotification}, this does NOT treat `{ id: undefined }` as a notification. |
| 77 | */ |
| 78 | export function isNotification<Params extends JRPCParams>( |
| 79 | message: JRPCNotification<Params> | JRPCRequest<Params> |
| 80 | ): message is JRPCNotification<Params> { |
| 81 | return !isRequest(message); |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * Checks whether the given request has a valid (non-empty string) `method`. |
no test coverage detected