parseApiSecretKey — @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 { parseApiSecretKey } from '@gj-kit/toss-payments/server';Signature, parameters, and return type
Section titled “Signature, parameters, and return type”/** * secret key 파서 — **"./server" 엔트리에서만 export** (§4.2b 격리 규칙). * * 브랜드 심볼이 비공개이므로 이 파서들이 없는 번들(브라우저)에서는 * `ApiSecretKey`/`WidgetSecretKey` 타입의 값을 제조할 방법 자체가 없다. * core/keys.ts의 진단 골격과 같은 구조지만 core에 두면 "."에서 도달 가능해지므로 * 여기서 별도 구현한다 (의도된 중복). */declare function parseApiSecretKey(raw: string): Result<ApiSecretKey<'test'> | ApiSecretKey<'live'>, KeyParseError>;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