fix unable to transfer file

This commit is contained in:
2026-02-07 14:40:58 +08:00
parent ed2629cb08
commit eb23ef9d5d
6 changed files with 64 additions and 8 deletions

View File

@@ -74,7 +74,7 @@ export class NotificationOptions {
"subtitle"?: string;
"body"?: string;
"categoryId"?: string;
"data"?: { [_: string]: any };
"data"?: { [_ in string]?: any };
/** Creates a new NotificationOptions instance. */
constructor($$source: Partial<NotificationOptions> = {}) {

View File

@@ -41,7 +41,7 @@ export function GetSavePath(): $CancellablePromise<string> {
return $Call.ByID(4081533263);
}
export function GetTrusted(): $CancellablePromise<{ [_: string]: string }> {
export function GetTrusted(): $CancellablePromise<{ [_ in string]?: string }> {
return $Call.ByID(800326956).then(($result: any) => {
return $$createType0($result);
});

View File

@@ -40,7 +40,7 @@ export class Peer {
* Routes 记录了设备的 IP 地址和状态。
* Key: ip, Value: *RouteState
*/
"routes": { [_: string]: RouteState | null };
"routes": { [_ in string]?: RouteState | null };
/**
* Port 是文件传输服务的监听端口。