UNPKG

@onereach/channel-transformer

Version:

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

9 lines (8 loc) 270 B
import { ISalesforceMiawStaticContent } from "../../types"; import { IGenericText } from "../../../generic/types"; export const transformText = (msg: ISalesforceMiawStaticContent): IGenericText => ({ type: 'text', props: { value: msg?.text || "" } });