Skip to content

Commit badc73e

Browse files
author
Filip Maj
committed
start of splitting out msg attachment
1 parent ae0750e commit badc73e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/types/src/message-attachments.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ import { PlainTextElement } from './block-kit/composition-objects';
1313
* Message attachments are considered a legacy part of messaging functionality. They are not deprecated per se, but they may change in the future, in ways that reduce their visibility or utility. We recommend moving to Block Kit instead. Read more about {@link https://api.slack.com/messaging/composing/layouts#when-to-use-attachments when to use message attachments}.
1414
* @see {@link https://api.slack.com/reference/messaging/attachments Secondary message attachments reference documentation}
1515
*/
16-
export interface MessageAttachment {
16+
export type MessageAttachment = LegacyAttachment | BlocksAttachment;
17+
18+
interface BlocksAttachment {
19+
}
20+
interface LegacyAttachment {
1721
/**
1822
* @description An array of {@link KnownBlock layout blocks} in the same format
1923
* {@link https://api.slack.com/block-kit/building as described in the building blocks guide}.

0 commit comments

Comments
 (0)