@dudousxd/nestjs-telescope
Version:
Laravel Telescope-style observability console for NestJS — core: watchers, recorder, correlation, SQLite store, headless API.
10 lines • 519 B
JavaScript
/**
* Runtime counterpart of {@link LeaseCapableStorage}: narrows an arbitrary
* provider (possibly third-party, possibly older than this SPI) to one that can
* back the default prune lease. Both halves are required — a provider with only
* one of them is treated as not lease-capable rather than half-used.
*/
export function isLeaseCapableStorage(storage) {
return (typeof storage.tryAcquireLease === 'function' && typeof storage.releaseLease === 'function');
}
//# sourceMappingURL=storage-provider.js.map