@livy/util
Version:
Common utilities for the Livy logger
16 lines (15 loc) • 496 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isSyncHandlerInterface = void 0;
/**
* Check whether a value implements the SyncHandlerInterface
*
* @param value The value to check
*/
function isSyncHandlerInterface(value) {
return (typeof value === 'object' &&
value !== null &&
typeof value.handleSync === 'function' &&
typeof value.handleBatchSync === 'function');
}
exports.isSyncHandlerInterface = isSyncHandlerInterface;