Skip to content

Commit 5ca7319

Browse files
authored
Merge pull request #43 from danmarshall/master
Added CardImage type
2 parents 25aa133 + e7f7b98 commit 5ca7319

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

src/directLine.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,19 @@ export interface CardAction {
6060
image?: string
6161
}
6262

63+
export interface CardImage {
64+
alt?: string,
65+
url: string,
66+
tap?: CardAction
67+
}
68+
6369
export interface HeroCard {
6470
contentType: "application/vnd.microsoft.card.hero",
6571
content: {
6672
title?: string,
6773
subtitle?: string,
6874
text?: string,
69-
images?: { url: string }[],
75+
images?: CardImage[],
7076
buttons?: CardAction[],
7177
tap?: CardAction
7278
}
@@ -78,7 +84,7 @@ export interface Thumbnail {
7884
title?: string,
7985
subtitle?: string,
8086
text?: string,
81-
images?: { url: string }[],
87+
images?: CardImage[],
8288
buttons?: CardAction[],
8389
tap?: CardAction
8490
}
@@ -96,7 +102,7 @@ export interface ReceiptItem {
96102
title?: string,
97103
subtitle?: string,
98104
text?: string,
99-
image?: { url: string },
105+
image?: CardImage,
100106
price?: string,
101107
quantity?: string,
102108
tap?: CardAction
@@ -123,7 +129,7 @@ export interface FlexCard {
123129
title?: string,
124130
subtitle?: string,
125131
text?: string,
126-
images?: { url: string, tap?: CardAction }[],
132+
images?: CardImage[],
127133
buttons?: CardAction[],
128134
aspect?: string
129135
}

0 commit comments

Comments
 (0)