UNPKG

@daiso-tech/core

Version:

The library offers flexible, framework-agnostic solutions for modern web applications, built on adaptable components that integrate seamlessly with popular frameworks like Next Js.

19 lines 789 B
/** * @internal */ export function isDatabaseLockAdapter(adapter) { const adapter_ = adapter; return (typeof adapter_["insert"] === "function" && adapter_["insert"].length === 3 && typeof adapter_["updateIfExpired"] === "function" && adapter_["updateIfExpired"].length === 3 && typeof adapter_["remove"] === "function" && adapter_["remove"].length === 1 && typeof adapter_["removeIfOwner"] === "function" && adapter_["removeIfOwner"].length === 2 && typeof adapter_["updateExpirationIfOwner"] === "function" && adapter_["updateExpirationIfOwner"].length === 3 && typeof adapter_["find"] === "function" && adapter_["find"].length === 1); } //# sourceMappingURL=is-database-lock-adapter.js.map