From 5cbf7639afae7a887056a517cec0bf072a7675aa Mon Sep 17 00:00:00 2001 From: Simon Chan <1330321+yume-chan@users.noreply.github.com> Date: Mon, 10 Apr 2023 23:15:28 +0800 Subject: [PATCH] fix(adb): mark options optional --- libraries/adb/src/commands/sync/push.ts | 4 ++-- libraries/adb/src/commands/sync/sync.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/adb/src/commands/sync/push.ts b/libraries/adb/src/commands/sync/push.ts index f9f0e987..6078c264 100644 --- a/libraries/adb/src/commands/sync/push.ts +++ b/libraries/adb/src/commands/sync/push.ts @@ -21,8 +21,8 @@ export interface AdbSyncPushV1Options { socket: AdbSyncSocket; filename: string; file: ReadableStream>; - type: LinuxFileType; - permission: number; + type?: LinuxFileType; + permission?: number; mtime?: number; packetSize?: number; } diff --git a/libraries/adb/src/commands/sync/sync.ts b/libraries/adb/src/commands/sync/sync.ts index 191ff73f..d4d05306 100644 --- a/libraries/adb/src/commands/sync/sync.ts +++ b/libraries/adb/src/commands/sync/sync.ts @@ -33,8 +33,8 @@ export function dirname(path: string): string { export interface AdbSyncWriteOptions { filename: string; file: ReadableStream>; - type: LinuxFileType; - permission: number; + type?: LinuxFileType; + permission?: number; mtime?: number; dryRun?: boolean; }