UNPKG

@livy/util

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