Skip to content

Commit 5230c48

Browse files
author
Shaw
committed
Merge branch 'pr-7882' into develop
2 parents e7a2c00 + 36dd40e commit 5230c48

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

plugins/plugin-slack/src/service.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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 = {

0 commit comments

Comments
 (0)