Skip to content

EnvTag — @gj-kit/toss-payments

A public type from @gj-kit/toss-payments/server. The signature below is taken directly from the 0.6.1 release declaration.

import { EnvTag } from '@gj-kit/toss-payments/server';
/**
* test/live phantom 태그 — 런타임 표현 없음. `isTestKey`/`isLiveKey`로만 내로잉한다.
* 상호 배타 축(EnvAxis)이라 `EnvTag<'test'> & EnvTag<'live'>`는 never로 붕괴한다 —
* 술어 내로잉이 유니언에서 반대 env 멤버를 정확히 걸러내기 위한 구조 (brand.ts 참조).
*/
type EnvTag<E extends Env> = EnvAxis<E>;

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
  • Version: 0.6.1
  • Public entry: ./server
  • Source: GitHub