Skip to content

Commit 18d52c4

Browse files
author
Hyunje Jun
committed
Add image carousel types in global.d.ts
Resolves #17.
1 parent bdfb4e5 commit 18d52c4

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

types/global.d.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ declare namespace Line {
129129

130130
export type ImageMapArea = { x: number, y: number, width: number, height: number };
131131

132-
export type TemplateContent = TemplateButtons | TemplateConfirm | TemplateCarousel;
132+
export type TemplateContent = TemplateButtons | TemplateConfirm | TemplateCarousel | TemplateImageCarousel;
133133
export type TemplateButtons = {
134134
type: "buttons",
135135
thumbnailImageUrl?: string,
@@ -151,6 +151,16 @@ declare namespace Line {
151151
actions: TemplateAction[],
152152
};
153153

154+
export type TemplateImageCarousel = {
155+
type: "image_carousel",
156+
columns: TemplateImageColumn,
157+
};
158+
159+
export type TemplateImageColumn = {
160+
imageUrl: string,
161+
action: TemplateAction,
162+
};
163+
154164
export type TemplateAction = TemplatePostbackAction | TemplateMessageAction | TemplateURIAction;
155165
export type TemplateActionBase = { label: string };
156166
export type TemplatePostbackAction = {

0 commit comments

Comments
 (0)