Type generation creates UseridMap as an interface when it is a Map/Record/object #1584
Open
1 of 7 tasks
Labels
area:typescript
issues that specifically impact using the package from typescript projects
enhancement
M-T: A feature request for new functionality
good first issue
pkg:web-api
applies to `@slack/web-api`
Milestone
When generating types for
packages/web-api/src/response/MigrationExchangeResponse.ts
,UseridMap
is created as aninterface
when really it should be aRecord
.This means when calling
migration.exchange
the data inresponse.user_id_map
needs to be cast before it can used.Packages:
Select all that apply:
@slack/web-api
@slack/rtm-api
@slack/webhooks
@slack/oauth
@slack/socket-mode
@slack/types
Reproducible in:
Whatever is in main at the moment: 57dfdda
Steps to reproduce:
./generate-web-api-types.sh
Expected result:
Actual result:
The text was updated successfully, but these errors were encountered: