Skip to content

Commit 7d8be1e

Browse files
authored
feat(types): add typing to AppMentionEvent files prop (#2449)
1 parent 38ad76b commit 7d8be1e

File tree

1 file changed

+57
-2
lines changed
  • packages/types/src/events

1 file changed

+57
-2
lines changed

packages/types/src/events/app.ts

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,63 @@ export interface AppMentionEvent {
133133
text: string;
134134
attachments?: MessageAttachment[];
135135
blocks?: (KnownBlock | Block)[];
136-
// TODO: Add more properties once the types library has a file object definition
137-
files?: { id: string }[];
136+
// TODO: Create and extend a file object definition
137+
files?: {
138+
id: string;
139+
created: number;
140+
timestamp: number;
141+
name: string;
142+
title: string;
143+
mimetype: string;
144+
filetype: string;
145+
pretty_type: string;
146+
user: string;
147+
user_team: string;
148+
editable: boolean;
149+
size: number;
150+
mode: string;
151+
is_external: boolean;
152+
external_type: string;
153+
is_public: boolean;
154+
public_url_shared: boolean;
155+
display_as_bot: boolean;
156+
username: string;
157+
url_private: string;
158+
url_private_download: string;
159+
media_display_type: string;
160+
thumb_pdf?: string;
161+
thumb_pdf_w?: number;
162+
thumb_pdf_h?: number;
163+
thumb_64?: string;
164+
thumb_80?: string;
165+
thumb_360?: string;
166+
thumb_360_w?: number;
167+
thumb_360_h?: number;
168+
thumb_480?: string;
169+
thumb_480_w?: number;
170+
thumb_480_h?: number;
171+
thumb_160?: string;
172+
thumb_720?: string;
173+
thumb_720_w?: number;
174+
thumb_720_h?: number;
175+
thumb_800?: string;
176+
thumb_800_w?: number;
177+
thumb_800_h?: number;
178+
thumb_960?: string;
179+
thumb_960_w?: number;
180+
thumb_960_h?: number;
181+
thumb_1024?: string;
182+
thumb_1024_w?: number;
183+
thumb_1024_h?: number;
184+
original_w?: number;
185+
original_h?: number;
186+
thumb_tiny?: string;
187+
permalink: string;
188+
permalink_public: string;
189+
is_starred: boolean;
190+
has_rich_preview: boolean;
191+
file_access: string;
192+
}[];
138193
upload?: boolean;
139194
display_as_bot?: boolean;
140195
edited?: {

0 commit comments

Comments
 (0)