Skip to content

MemoryLockReleasedEvent — @gj-kit/toss-payments-postgresql

A public interface from @gj-kit/toss-payments-postgresql/testing. The signature below is taken directly from the 0.5.1 release declaration.

import { MemoryLockReleasedEvent } from '@gj-kit/toss-payments-postgresql/testing';
interface MemoryLockReleasedEvent {
readonly type: 'lock-released';
readonly api: MemoryLockApi;
readonly lock: MemoryLockClass;
readonly key: string;
/**
* `commit` when the callback returned — the handle's staged billing-key write of that
* customerKey became visible to lock-free reads; `rollback` when it threw — the staged write
* was discarded and was never visible outside the callback.
*/
readonly outcome: 'commit' | 'rollback';
}

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/toss-payments-postgresql
  • Version: 0.5.1
  • Public entry: ./testing
  • Source: GitHub