UNPKG

@orenda-inc/nestjs-webx-pay

Version:

NestJS module for WebX Pay integration

22 lines (21 loc) 807 B
import { DynamicModule } from '@nestjs/common'; import { WebXPayModuleConfig } from './interfaces/webx-pay.interface'; export interface WebXPayModuleAsyncOptions { useFactory: (...args: any[]) => Promise<WebXPayModuleConfig> | WebXPayModuleConfig; inject?: any[]; imports?: any[]; } export interface WebXPayModuleAsyncOptionsTyped<T extends any[] = any[]> { useFactory: (...args: T) => Promise<WebXPayModuleConfig> | WebXPayModuleConfig; inject?: [...T]; } export declare class WebXPayModule { /** * Create WebXPayModule with synchronous configuration */ static forRoot(config: WebXPayModuleConfig): DynamicModule; /** * Create WebXPayModule with asynchronous configuration */ static forRootAsync(options: WebXPayModuleAsyncOptions): DynamicModule; }