UNPKG

@aurory/nestjs-k8s-leader-election

Version:
10 lines (9 loc) 416 B
import { DynamicModule } from '@nestjs/common'; import { LeaderElectionOptions } from './leader-election-options.interface'; export declare class LeaderElectionModule { static forRoot(options: LeaderElectionOptions): DynamicModule; static forRootAsync(options: { useFactory: (...args: any[]) => Promise<LeaderElectionOptions> | LeaderElectionOptions; inject?: any[]; }): DynamicModule; }