import { Provider } from "@nestjs/common" ; import { IncomingWebhook } from "@slack/webhook" ; import { getSlackClient } from "./getSlackClient" ; import { SLACK_TOKEN } from "./slackConstants" ; import { SlackOptions } from "./slackOptions" ; export function createSlackProvider ( options ) { return { provide : SLACK_TOKEN , useValue : getSlackClient ( options ) , } ; }