UNPKG

@tawk.to/nestjs-google-pubsub-microservice

Version:
20 lines (19 loc) 837 B
import { DynamicModule, ModuleMetadata, Provider } from '@nestjs/common'; import { GCPubSubClientOptions } from './gc-pubsub.interface'; export interface GCPubSubRegisterClientOptions { name: string; config: GCPubSubClientOptions; } export interface GCPubSubRegisterClientAsyncOption extends Pick<ModuleMetadata, 'imports'> { name: string; useFactory?: (...args: any[]) => Promise<GCPubSubClientOptions> | GCPubSubClientOptions; inject?: any[]; extraProviders?: Provider[]; } export declare class GCPubSubClientModule { static register(options: GCPubSubRegisterClientOptions[]): DynamicModule; static registerAsync(options: GCPubSubRegisterClientAsyncOption[]): DynamicModule; private static createAsyncProviders; private static createFactoryWrapper; private static assignOnAppShutdownHook; }