@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.
20 lines • 675 B
JavaScript
/**
* @module Lock
*/
import {} from "../../../../lock/contracts/_module.js";
import { isLockFactory } from "../../../../lock/implementations/derivables/lock-factory/is-lock-factory.js";
import { LockFactory } from "../../../../lock/implementations/derivables/lock-factory/lock-factory.js";
import {} from "../../../../namespace/contracts/_module.js";
/**
* @internal
*/
export function resolveLockFactoryInput(namespace, lockFactoryInput) {
if (isLockFactory(lockFactoryInput)) {
return lockFactoryInput;
}
return new LockFactory({
namespace,
adapter: lockFactoryInput,
});
}
//# sourceMappingURL=resolve-lock-factory-input.js.map