Skip to content

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

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

import { isTossPostgresError } from '@gj-kit/toss-payments-postgresql';
/**
* 타입 가드 — `instanceof` 대신 구조 판정을 쓴다.
*
* 근거: ESM/CJS dual-package 이중 로드 시 클래스 정체성이 갈라져 `instanceof`가
* 거짓 음성을 낸다(toss-payments-nestjs가 토큰에 `Symbol.for`를 쓰는 것과 같은 이유).
* name + code 화이트리스트 판정은 로드 경로와 무관하게 안정적이다.
*/
declare function isTossPostgresError(value: unknown): value is TossPostgresError;

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: .
  • Source: GitHub