fix cannot read data when opening a deeplink (#8109)

This commit is contained in:
Elias Nahum
2024-07-27 03:37:57 +08:00
committed by GitHub
parent ca00ab21da
commit 4048b70713
10 changed files with 151 additions and 16 deletions

View File

@@ -8,6 +8,10 @@ export interface DeepLink {
teamName: string;
}
export interface DeepLinkServer {
serverUrl: string;
}
export interface DeepLinkChannel extends DeepLink {
channelName: string;
}
@@ -34,7 +38,7 @@ export type DeepLinkType = typeof DeepLink[keyof typeof DeepLink];
export interface DeepLinkWithData {
type: DeepLinkType;
url: string;
data?: DeepLinkChannel | DeepLinkDM | DeepLinkGM | DeepLinkPermalink | DeepLinkPlugin;
data?: DeepLinkChannel | DeepLinkDM | DeepLinkGM | DeepLinkPermalink | DeepLinkPlugin | DeepLinkServer;
}
export type LaunchType = typeof Launch[keyof typeof Launch];