defineTossPaymentsConfig — @gj-kit/toss-payments
A public function from @gj-kit/toss-payments/server. The signature below is taken directly from the 0.6.1 release declaration.
Verified import example
Section titled “Verified import example”import { defineTossPaymentsConfig } from '@gj-kit/toss-payments/server';Signature, parameters, and return type
Section titled “Signature, parameters, and return type”/** * forRootAsync 등 간접 전달에서 `const` 추론을 고정하는 identity — 타입 보존용 (설계 §4 필수 사용). * * 팩토리 함수가 config를 반환하는 경로(NestJS useFactory 등)에서는 리터럴 추론이 풀려 * 조건부 프로퍼티 판정이 무너질 수 있다 — 이 함수로 감싸 정의 시점에 타입을 고정하고, * `typeof` 로 배선 판정이 보존된 config 타입을 재사용하라. */declare function defineTossPaymentsConfig<E extends Env, const C extends TossPaymentsApiConfig<E> | TossPaymentsWidgetConfig<E>>(config: C): C;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 - Version:
0.6.1 - Public entry:
./server - Source: GitHub