Skip to content

Env — @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 { Env } from '@gj-kit/toss-payments/server';
/**
* 키 4종 — 템플릿 리터럴(형식) × 브랜드(명목성) × EnvTag(test/live phantom).
*
* 이 모듈("."에서 도달)은 **client key 파서만** export한다.
* secret key 파서(parseApiSecretKey/parseWidgetSecretKey)는 server/keys.ts 전용 —
* 브라우저 번들에서 시크릿 키 타입의 값을 제조할 방법 자체를 없애는 격리 규칙.
*/
type Env = 'test' | 'live';

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