UNPKG

@livy/util

Version:
12 lines (11 loc) 328 B
/** * Check whether a value implements the SyncHandlerInterface * * @param value The value to check */ export function isSyncHandlerInterface(value) { return (typeof value === 'object' && value !== null && typeof value.handleSync === 'function' && typeof value.handleBatchSync === 'function'); }