ant-plus-next / SendCallback
SendCallback: (
result
) =>void
A callback function type used to handle the result of a send operation. This callback is invoked after an attempt to send data, indicating whether the operation was successful or not.
boolean
A boolean value indicating the outcome of the send operation.
true
if the operation was successful; false
otherwise.
void
const handleSendResult: SendCallback = (result) => {
if (result) {
console.log('Data sent successfully.');
} else {
console.log('Failed to send data.');
}
};