Skip to content

Commit e6bd2ac

Browse files
committed
lint
1 parent d889e07 commit e6bd2ac

2 files changed

Lines changed: 21 additions & 8 deletions

File tree

packages/web-api/src/types/request/entity.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export type EntityPresentDetailsArguments = TokenOverridable & {
3232
// If status is 'custom', you can use this field to provide a title to the client.
3333
custom_title?: string;
3434
// Set of action buttons to be shown in case of a specific error.
35+
// biome-ignore lint/complexity/noBannedTypes: Allow Object
3536
actions?: Object[];
3637
};
3738
};

packages/web-api/test/types/methods/chat.test-d.ts

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -422,10 +422,10 @@ expectAssignable<Parameters<typeof web.chat.postMessage>>([
422422
{
423423
entity_type: 'slack#/entities/file',
424424
entity_payload: {
425-
attributes: {}
425+
attributes: {},
426426
},
427-
external_ref: {id: ""},
428-
url: ""
427+
external_ref: { id: '' },
428+
url: '',
429429
},
430430
],
431431
},
@@ -646,13 +646,25 @@ expectAssignable<Parameters<typeof web.chat.unfurl>>([
646646
metadata: {
647647
entities: [
648648
{
649-
entity_type: 'slack#/entities/file',
649+
entity_type: 'slack#/entities/task',
650650
entity_payload: {
651-
attributes: {}
651+
attributes: {
652+
title: {
653+
text: 'Important task',
654+
},
655+
},
656+
fields: {
657+
status: {
658+
value: 'All clear',
659+
},
660+
description: {
661+
value: 'Details of the task.',
662+
},
663+
},
652664
},
653-
external_ref: {id: ""},
654-
url: "",
655-
app_unfurl_url: 'https://google.com',
665+
external_ref: { id: '1234' },
666+
url: 'https://myappdomain.com/id/1234',
667+
app_unfurl_url: 'https://myappdomain.com/id/1234?myquery=param',
656668
},
657669
],
658670
},

0 commit comments

Comments
 (0)