ably / ably-js

Javascript, Node, Typescript, React, React Native client library SDK for Ably realtime messaging service

Home Page:https://ably.com/download

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong type return in useChannel()

phungvansyhb opened this issue · comments

Screenshot 2024-01-23 161448

Enviroment : nextjs , vscode

const {channel} = useChannel(TOPIC.GAME_ROOM.CREATE);
return channel has type Types.RealtimeChannelPromise which difference with Ably.Types.RealtimeChannelPromise.
And can't get code suggestion.

➤ Automation for Jira commented:

The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-4047

Hello @phungvansyhb !

I couldn't manage to reproduce your issue on a bare bone Next.js app while using latest ably package version. It seems like the issue you're describing was fixed in v1.2.48 release, in #1509.

Could you please check if you're using the latest ably version available?

@VeskeR I am sorry, I start with code base in gitHub. That's ok when I reinstall the latest version.

@phungvansyhb No worries, glad I could help and it's working now!
Closing as resolved.