refactor(struct): improve tree-shaking

This commit is contained in:
Simon Chan 2024-11-01 22:06:18 +08:00
parent e8d59b232e
commit c91baa9116
No known key found for this signature in database
GPG key ID: A8B69F750B9BCEDD
32 changed files with 266 additions and 266 deletions

View file

@ -1,13 +1,13 @@
import type { ReadableStream } from "@yume-chan/stream-extra";
import { PushReadableStream } from "@yume-chan/stream-extra";
import type { StructValue } from "@yume-chan/struct";
import { buffer, Struct, u32 } from "@yume-chan/struct";
import { buffer, struct, u32 } from "@yume-chan/struct";
import { AdbSyncRequestId, adbSyncWriteRequest } from "./request.js";
import { adbSyncReadResponses, AdbSyncResponseId } from "./response.js";
import type { AdbSyncSocket } from "./socket.js";
export const AdbSyncDataResponse = new Struct(
export const AdbSyncDataResponse = struct(
{ data: buffer(u32) },
{ littleEndian: true },
);