Skip to content

Commit 4b8c772

Browse files
ShoyaHyunje Jun
authored andcommitted
Add new fields (#39)
* Add buttons template new fields * add carousel new fields * add column new field * fix type literal
1 parent e3d76b8 commit 4b8c772

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

lib/types.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ export type TemplateContent =
210210
export type TemplateButtons = {
211211
type: "buttons";
212212
thumbnailImageUrl?: string;
213+
imageAspectRatio?: "rectangle" | "square";
214+
imageSize?: "cover" | "contain";
215+
imageBackgroundColor?: string;
213216
title?: string;
214217
text: string;
215218
actions: Action<{ label: string }>[];
@@ -221,10 +224,16 @@ export type TemplateConfirm = {
221224
actions: Action<{ label: string }>[];
222225
};
223226

224-
export type TemplateCarousel = { type: "carousel"; columns: TemplateColumn[] };
227+
export type TemplateCarousel = {
228+
type: "carousel";
229+
columns: TemplateColumn[];
230+
imageAspectRatio?: "rectangle" | "square";
231+
imageSize?: "cover" | "contain";
232+
};
225233

226234
export type TemplateColumn = {
227235
thumbnailImageUrl?: string;
236+
imageAspectRatio?: "rectangle" | "square";
228237
title?: string;
229238
text: string;
230239
actions: Action<{ label: string }>[];

0 commit comments

Comments
 (0)