File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -732,8 +732,12 @@ export class SlackService extends Service implements ISlackService {
732732 // session is needed. Only constructed when a user token is
733733 // configured. Routing decisions in getOutboundClient() consult
734734 // account.role to decide which client receives each call.
735+ // `WebClient` is the alias for `App["client"]`, which is the
736+ // same `@slack/web-api` `WebClient` class imported here as
737+ // `SlackWebClient` — a direct `as WebClient` cast is correct
738+ // and a future type divergence will surface as an error here.
735739 const userClient = account . userToken
736- ? ( new SlackWebClient ( account . userToken ) as unknown as WebClient )
740+ ? ( new SlackWebClient ( account . userToken ) as WebClient )
737741 : null ;
738742
739743 const state : SlackAccountRuntime = {
You can’t perform that action at this time.
0 commit comments