@livy/util
Version:
Common utilities for the Livy logger
12 lines (11 loc) • 328 B
JavaScript
/**
* Check whether a value implements the SyncHandlerInterface
*
* @param value The value to check
*/
export function isSyncHandlerInterface(value) {
return (typeof value === 'object' &&
value !== null &&
typeof value.handleSync === 'function' &&
typeof value.handleBatchSync === 'function');
}