spark.SparkResultMessage
export interface SparkResultMessage {
type: 'result';
/** Request ID this result corresponds to */
id: string;
/** Result from successful call */
result?: unknown;
/** Error message if call failed */
error?: string;
}type('result')id(string)- – Request ID this result corresponds to
result(unknown)optional- – Result from successful call
error(string)optional- – Error message if call failed
Message sent in response to a function call.