loadWidgets — @gj-kit/toss-payments
A public function from @gj-kit/toss-payments/browser. The signature below is taken directly from the 0.6.1 release declaration.
Verified import example
Section titled “Verified import example”import { loadWidgets } from '@gj-kit/toss-payments/browser';Signature, parameters, and return type
Section titled “Signature, parameters, and return type”/** * 위젯 로드 — WidgetClientKey(gck) 전용. ApiSecretKey는 물론 ApiClientKey(ck)도 컴파일 에러다. * customer는 2–50자 서브타입(WidgetCustomerKey) 또는 {@link ANONYMOUS}만 — * 300자 허용 서버용 CustomerKey는 컴파일 에러. */declare function loadWidgets(clientKey: WidgetClientKey, customer: WidgetCustomerKey | Anonymous): Promise<Result<TossWidgets, WidgetError>>;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:
./browser - Source: GitHub