Skip to content

TossPaymentsPostgresModule — @gj-kit/toss-payments-postgresql

A public class from @gj-kit/toss-payments-postgresql/nestjs. The signature below is taken directly from the 0.5.1 release declaration.

import { TossPaymentsPostgresModule } from '@gj-kit/toss-payments-postgresql/nestjs';
declare class TossPaymentsPostgresModule {
/** 동기 조립 — `{ provide: TOSS_PAYMENTS_POSTGRES, useValue: createTossPaymentsPostgres(options) }`. */
static forRoot(options: TossPaymentsPostgresModuleOptions): DynamicModule;
/**
* 비동기 조립 — 골든 패스는 코어 모듈과의 연쇄다:
*
* ```ts
* TossPaymentsModule.forRootAsync({
* imports: [TossPaymentsPostgresModule.forRootAsync({ ... })],
* inject: [TOSS_PAYMENTS_POSTGRES],
* useFactory: (pg: TossPaymentsPostgres) =>
* defineTossPaymentsConfig({ secretKey, orders: pg.orders, ... }),
* })
* ```
*/
static forRootAsync(options: TossPaymentsPostgresModuleAsyncOptions): DynamicModule;
}

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-postgresql
  • Version: 0.5.1
  • Public entry: ./nestjs
  • Source: GitHub