MemoryLockContractErrorCode — @gj-kit/toss-payments-postgresql
A public type from @gj-kit/toss-payments-postgresql/testing. The signature below is taken directly from the 0.5.1 release declaration.
Verified import example
Section titled “Verified import example”import { MemoryLockContractErrorCode } from '@gj-kit/toss-payments-postgresql/testing';Signature, parameters, and return type
Section titled “Signature, parameters, and return type”/** Stable codes of lock-contract violations the fake refuses instead of deadlocking. */type MemoryLockContractErrorCode =/** Re-acquiring a key already held by the surrounding callback — PostgreSQL would self-deadlock. */'reentrant-lock'/** Any public lock API called inside another lock callback — README forbids nesting; the fake refuses it. */ | 'nested-lock-api'/** * A locked-mutation handle used after its callback settled. The PostgreSQL handle is bound to * a connection that was already committed/rolled back and released; the fake refuses rather * than silently dropping the write or applying it outside the lock. */ | 'handle-outside-callback';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.
Release context
Section titled “Release context”- Package:
@gj-kit/toss-payments-postgresql - Version:
0.5.1 - Public entry:
./testing - Source: GitHub