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