import { Mailer , MailerConfiguration } from './mailer' ; import { MailerToken } from './mailer.constants' ; export function createMailerProviders ( config ) { const mailerProvider = { provide : MailerToken , useFactory : ( ) => new Mailer ( config ) } ; return [ mailerProvider ] ; }