Skip to content

Commit 58fe64e

Browse files
author
Evan Greer
committed
chore: adds comments to props
1 parent a292556 commit 58fe64e

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

src/embedded/classes/IterableEmbeddedMessageDefaultAction.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ export class IterableEmbeddedMessageDefaultAction {
4646
* An interface defining the dictionary object containing the properties for the embedded message default action.
4747
*/
4848
export interface EmbeddedMessageDefaultActionDict {
49+
/** The type of the action */
4950
type: string;
51+
/** The url for the action when the type is `openUrl` */
5052
data?: string;
5153
}

src/embedded/classes/IterableEmbeddedMessageElements.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,18 @@ export class IterableEmbeddedMessageElements {
9191
* An interface defining the dictionary object containing the properties for the embedded message elements.
9292
*/
9393
export interface EmbeddedMessageElementsDict {
94+
/** The title of the embedded message */
9495
title?: string;
96+
/** The body of the embedded message */
9597
body?: string;
98+
/** The url of the embedded message image */
9699
mediaUrl?: string;
100+
/** The caption of the embedded message image */
97101
mediaUrlCaption?: string;
102+
/** The default action of the embedded message */
98103
defaultAction?: IterableEmbeddedMessageDefaultAction;
104+
/** The buttons of the embedded message */
99105
buttons?: IterableEmbeddedMessageElementsButton[];
106+
/** The text elements of the embedded message */
100107
text?: IterableEmbeddedMessageText[];
101108
}

src/embedded/classes/IterableEmbeddedMessageText.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ export class IterableEmbeddedMessageText {
4242
* An interface defining the dictionary object containing the properties for an embedded message text.
4343
*/
4444
export interface EmbeddedMessageTextDict {
45+
/** The id of the text element */
4546
id: string;
47+
/** The text of the text element */
4648
text?: string;
49+
/** The type of the text element */
4750
type?: string;
4851
}

0 commit comments

Comments
 (0)