View type missing optional id from response #436
Labels
bug
M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented
TypeScript-specific
Description
In the docs, in re: updating views
Typescript bindings for View don't have an id property on the interface, which is causing errors. https://github.com/slackapi/node-slack-sdk/blob/master/packages/types/src/index.ts#L35
Not sure about this type, also not sure about opening the issue here, I understand the type is there ^ but it seems the intent of the View type is to be the view object sent with
views.open
API call, not to handle the ViewResponse which has an id.What type of issue is this? (place an
x
in one of the[ ]
)Bugfeature? It's an enhancement to the type bindings, but I can't reference a value that is definitely there in the response because of it when using typescript (have to give it the good old
@ts-ignore
).Requirements (place an
x
in each of the[ ]
)Bug Report
Reproducible in:
package version: 1.8.0
node version: 12.14.1
OS version(s): MacOS 10.15.1
Steps to reproduce:
Expected result:
Should be able to reference
body.view.id
Actual result:
TypeError
Attachments:
The text was updated successfully, but these errors were encountered: