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.

21 lines 752 B
/** * @module Lock */ import {} from "../../../../lock/contracts/_module.js"; /** * @internal */ export function isDatabaseLockAdapter(adapter) { const adapter_ = adapter; return (typeof adapter_["transaction"] === "function" && adapter_["transaction"].length === 1 && typeof adapter_["remove"] === "function" && adapter_["remove"].length === 1 && typeof adapter_["removeIfOwner"] === "function" && adapter_["removeIfOwner"].length === 2 && typeof adapter_["updateExpiration"] === "function" && adapter_["updateExpiration"].length === 3 && typeof adapter_["find"] === "function" && adapter_["find"].length === 1); } //# sourceMappingURL=is-database-lock-adapter.js.map