Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 3a14c162 authored by Simon Chan's avatar Simon Chan
Browse files

fix(adb): improve typing generation

parent 2d1cf1fa
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
import type { Consumable, WritableStream } from "@yume-chan/stream-extra";
import { DuplexStreamFactory, ReadableStream } from "@yume-chan/stream-extra";

import type { Adb, AdbSocket } from "../../../adb.js";
@@ -36,7 +37,7 @@ export class AdbSubprocessNoneProtocol implements AdbSubprocessProtocol {
    readonly #duplex: DuplexStreamFactory<Uint8Array, Uint8Array>;

    // Legacy shell forwards all data to stdin.
    get stdin() {
    get stdin(): WritableStream<Consumable<Uint8Array>> {
        return this.#socket.writable;
    }

@@ -44,7 +45,7 @@ export class AdbSubprocessNoneProtocol implements AdbSubprocessProtocol {
    /**
     * Legacy shell mixes stdout and stderr.
     */
    get stdout() {
    get stdout(): ReadableStream<Uint8Array> {
        return this.#stdout;
    }

@@ -52,7 +53,7 @@ export class AdbSubprocessNoneProtocol implements AdbSubprocessProtocol {
    /**
     * `stderr` will always be empty.
     */
    get stderr() {
    get stderr(): ReadableStream<Uint8Array> {
        return this.#stderr;
    }