mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 08:40:44 +00:00
15 lines
489 B
TypeScript
15 lines
489 B
TypeScript
import type * as SessionWriteLockModule from "../agents/session-write-lock.js";
|
|
|
|
type SessionWriteLockModuleShape = typeof SessionWriteLockModule;
|
|
|
|
export async function buildSessionWriteLockModuleMock(
|
|
loadActual: () => Promise<SessionWriteLockModuleShape>,
|
|
acquireSessionWriteLock: SessionWriteLockModuleShape["acquireSessionWriteLock"],
|
|
): Promise<SessionWriteLockModuleShape> {
|
|
const original = await loadActual();
|
|
return {
|
|
...original,
|
|
acquireSessionWriteLock,
|
|
};
|
|
}
|