UNPKG

@onereach/channel-transformer

Version:

Convert data model between different channels (Slack, Microsoft Teams, Generic...)

12 lines (10 loc) 341 B
import { IGenericSection } from '../../../generic/types'; import { IOutputText } from '../../types'; import { transformText } from './text'; export const transformOutputText = (msg: IOutputText): IGenericSection => { const result: IGenericSection = { type: 'section', children: [transformText(msg.value)] }; return result; };