UNPKG

@livy/util

Version:
15 lines (14 loc) 456 B
"use strict"; 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;