import { ClientProviderOptions, Transport } from '@nestjs/microservices';
export const natsClient = (name: string) =>
<ClientProviderOptions>{
name,
transport: Transport.NATS,
options: {
servers: ['nats://localhost:4222'],
},
};