We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7390f10 + 7d91e04 commit 5a0b41eCopy full SHA for 5a0b41e
src/api/DesktopAgent.ts
@@ -169,5 +169,5 @@ export interface DesktopAgent {
169
*
170
* Returns `null` if the app is not joined to a channel.
171
*/
172
- getCurrentChannel(): Promise<Channel>;
+ getCurrentChannel(): Promise<Channel | null>;
173
}
src/api/methods.ts
@@ -71,6 +71,6 @@ export const getOrCreateChannel: (
71
return window.fdc3.getOrCreateChannel(channelId);
72
};
73
74
-export const getCurrentChannel: () => Promise<Channel> = () => {
+export const getCurrentChannel: () => Promise<Channel | null> = () => {
75
return window.fdc3.getCurrentChannel();
76
0 commit comments