notifme/notifme-sdk

View on GitHub
src/models/provider-slack.js

Summary

Maintainability
A
0 mins
Test Coverage
/* @flow */
// Types
import type { SlackRequestType } from './notification-request'

export type SlackProviderType = {
  type: 'logger'
} | {
  type: 'custom',
  id: string,
  send: (SlackRequestType) => Promise<string>
} | {
  type: 'webhook',
  webhookUrl?: string // Can be overriden in request
}