Skip to content

Commit 5ad57c2

Browse files
committed
remove Template prefixes of summed types
1 parent 923472d commit 5ad57c2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/types.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -241,28 +241,28 @@ export type TemplateImageColumn = {
241241
};
242242

243243
export type Action<Label> =
244-
| TemplatePostbackAction & Label
245-
| TemplateMessageAction & Label
246-
| TemplateURIAction & Label
247-
| TemplateDatetimePickerAction & Label;
244+
| PostbackAction & Label
245+
| MessageAction & Label
246+
| URIAction & Label
247+
| DatetimePickerAction & Label;
248248

249-
export type TemplatePostbackAction = {
249+
export type PostbackAction = {
250250
type: "postback";
251251
data: string;
252252
text?: string;
253253
};
254254

255-
export type TemplateMessageAction = {
255+
export type MessageAction = {
256256
type: "message";
257257
text: string;
258258
};
259259

260-
export type TemplateURIAction = {
260+
export type URIAction = {
261261
type: "uri";
262262
uri: string;
263263
};
264264

265-
export type TemplateDatetimePickerAction = {
265+
export type DatetimePickerAction = {
266266
type: "datetimepicker";
267267
data: string;
268268
mode: "date" | "time" | "datetime";

0 commit comments

Comments
 (0)