@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.
17 lines • 630 B
JavaScript
/**
* @internal
*/
export function isDatabaseLockAdapter(adapter) {
const adapter_ = adapter;
return (typeof adapter_["insert"] === "function" &&
adapter_["insert"].length === 3 &&
typeof adapter_["update"] === "function" &&
adapter_["update"].length === 3 &&
typeof adapter_["remove"] === "function" &&
adapter_["remove"].length === 2 &&
typeof adapter_["refresh"] === "function" &&
adapter_["refresh"].length === 3 &&
typeof adapter_["find"] === "function" &&
adapter_["find"].length === 1);
}
//# sourceMappingURL=is-database-lock-adapter.js.map