TwilioClient
type TwilioClient = Twilio;Defined in: lib/utils/twilio.interface.ts:23
The Twilio SDK client instance this module provides.
An alias for the SDK’s Twilio type, re-exported so consumers can annotate
injected clients without importing from twilio directly.
Example
Section titled “Example”import { InjectTwilio, type TwilioClient } from 'nestjs-twilio';
@Injectable()export class SmsService { constructor(@InjectTwilio() private readonly client: TwilioClient) {}
send(to: string, body: string) { return this.client.messages.create({ to, body, from: '+1234567890' }); }}