mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-03 09:49:24 +02:00
feat: make consumable writable streams also accept raw values
This commit is contained in:
parent
d60ac95f47
commit
d06b5f2ed6
31 changed files with 387 additions and 346 deletions
|
@ -23,6 +23,7 @@ import {
|
|||
} from "@yume-chan/scrcpy";
|
||||
import type {
|
||||
Consumable,
|
||||
MaybeConsumable,
|
||||
ReadableStream,
|
||||
ReadableWritablePair,
|
||||
} from "@yume-chan/stream-extra";
|
||||
|
@ -100,7 +101,7 @@ export type AdbScrcpyAudioStreamMetadata =
|
|||
export class AdbScrcpyClient {
|
||||
static async pushServer(
|
||||
adb: Adb,
|
||||
file: ReadableStream<Consumable<Uint8Array>>,
|
||||
file: ReadableStream<MaybeConsumable<Uint8Array>>,
|
||||
filename = DEFAULT_SERVER_PATH,
|
||||
) {
|
||||
const sync = await adb.sync();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue