@livy/util
Version:
Common utilities for the Livy logger
15 lines (14 loc) • 471 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isProcessableHandlerInterface = void 0;
/**
* Check whether a value implements the `ProcessableHandlerInterface`
*
* @param value The value to check
*/
function isProcessableHandlerInterface(value) {
return (typeof value === 'object' &&
value !== null &&
value.processors instanceof Set);
}
exports.isProcessableHandlerInterface = isProcessableHandlerInterface;