Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update slack-dto.ts #125

Closed
wants to merge 1 commit into from

Conversation

tanguyantoine
Copy link
Contributor

@tanguyantoine tanguyantoine commented Nov 17, 2023

fixes this typing error: Argument of type 'Readonly' is not assignable to parameter of type 'ChatUpdateArguments'.
Property 'ts' is missing in type 'Readonly' but required in type 'ChatUpdateArguments'.

when doing

 await client.chat.update(
      Message()
        //omitted for brevity
        .channel('channel_id')
        .ts('message_ts')
        .buildToObject()
    )

@codecov-commenter
Copy link

codecov-commenter commented Nov 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (6f5ccd5) 99.85% compared to head (2edf770) 99.85%.
Report is 4 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #125   +/-   ##
=======================================
  Coverage   99.85%   99.85%           
=======================================
  Files          91       91           
  Lines        1360     1360           
  Branches      119      119           
=======================================
  Hits         1358     1358           
  Misses          2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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()
    )
```
@tanguyantoine
Copy link
Contributor Author

@raycharius For some reason commit check does not work 🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants