UNPKG

@initbit/nestjs-jetstream

Version:
19 lines (18 loc) 751 B
import { DynamicModule } from '@nestjs/common'; import { NatsJetStreamOptions } from './interfaces/nats-jetstream-options.interface'; export declare class NatsJetStreamModule { /** * Register the NatsJetStream module with static options * @param options Configuration options for the JetStream transport */ static register(options: NatsJetStreamOptions): DynamicModule; /** * Register the NatsJetStream module with async options * @param options Async configuration options for the JetStream transport */ static registerAsync(options: { imports?: any[]; useFactory: (...args: any[]) => Promise<NatsJetStreamOptions> | NatsJetStreamOptions; inject?: any[]; }): DynamicModule; }