fix: fix build errors

This commit is contained in:
Simon Chan 2025-02-22 22:38:33 +08:00
parent 0af5280079
commit 4deb890b20
No known key found for this signature in database
GPG key ID: A8B69F750B9BCEDD
5 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,4 @@
import type { AbortSignal } from "@yume-chan/stream-extra";
import { ConcatStringStream, TextDecoderStream } from "@yume-chan/stream-extra"; import { ConcatStringStream, TextDecoderStream } from "@yume-chan/stream-extra";
import { AdbCommandBase } from "../base.js"; import { AdbCommandBase } from "../base.js";

View file

@ -1,4 +1,8 @@
import type { MaybeConsumable, WritableStream } from "@yume-chan/stream-extra"; import type {
AbortSignal,
MaybeConsumable,
WritableStream,
} from "@yume-chan/stream-extra";
import { ReadableStream } from "@yume-chan/stream-extra"; import { ReadableStream } from "@yume-chan/stream-extra";
import type { Adb, AdbSocket } from "../../../adb.js"; import type { Adb, AdbSocket } from "../../../adb.js";

View file

@ -1,5 +1,6 @@
import { PromiseResolver } from "@yume-chan/async"; import { PromiseResolver } from "@yume-chan/async";
import type { import type {
AbortSignal,
PushReadableStreamController, PushReadableStreamController,
ReadableStream, ReadableStream,
WritableStreamDefaultWriter, WritableStreamDefaultWriter,

View file

@ -1,5 +1,6 @@
import type { MaybePromiseLike } from "@yume-chan/async"; import type { MaybePromiseLike } from "@yume-chan/async";
import type { import type {
AbortSignal,
MaybeConsumable, MaybeConsumable,
ReadableStream, ReadableStream,
WritableStream, WritableStream,

View file

@ -28,6 +28,7 @@ export declare interface AbortSignal {
* Remove an event listener that was previously added with {@link AbortSignal.addEventListener}. * Remove an event listener that was previously added with {@link AbortSignal.addEventListener}.
*/ */
removeEventListener(type: "abort", listener: () => void): void; removeEventListener(type: "abort", listener: () => void): void;
throwIfAborted(): void;
} }
/** /**