Skip to content

Commit

Permalink
🐛 fixes typing
Browse files Browse the repository at this point in the history
fixes this typing error: Argument of type 'Readonly<SlackMessageDto>' is not assignable to parameter of type 'ChatUpdateArguments'.
  Property 'ts' is missing in type 'Readonly<SlackMessageDto>' but required in type 'ChatUpdateArguments'.

when doing

```ts
 await client.chat.update(
      Message()
        //omitted for brevity
        .channel('channel_id')
        .ts('message_ts)
        .buildToObject()
    )
```
  • Loading branch information
tanguyantoine committed Nov 18, 2023
1 parent bdb89d7 commit 7f0595b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/internal/dto/slack-dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ export class SlackMessageDto extends SlackDto {
// @ts-ignore -- Dynamically created class
public readonly channel: string;

// @ts-ignore -- Dynamically created class
public readonly ts: string;

public readonly blocks?: SlackBlockDto[];

public readonly attachments?: SlackDto[];
Expand Down

0 comments on commit 7f0595b

Please sign in to comment.