mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-06 03:50:18 +02:00
chore: disable importsNotUsedAsValues
This commit is contained in:
parent
bc9bc49e8c
commit
730aac8da2
17 changed files with 22 additions and 23 deletions
|
@ -1,4 +1,4 @@
|
|||
import { AdbBackend, DuplexStreamFactory, ReadableStream, ReadableWritablePair } from '@yume-chan/adb';
|
||||
import { DuplexStreamFactory, type AdbBackend, type ReadableStream, type ReadableWritablePair } from '@yume-chan/adb';
|
||||
|
||||
export const WebUsbDeviceFilter: USBDeviceFilter = {
|
||||
classCode: 0xFF,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { AdbBackend, DuplexStreamFactory } from '@yume-chan/adb';
|
||||
import { DuplexStreamFactory, type AdbBackend } from '@yume-chan/adb';
|
||||
|
||||
export default class AdbWsBackend implements AdbBackend {
|
||||
public readonly serial: string;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { PromiseResolver } from '@yume-chan/async';
|
||||
import { AdbAuthenticationHandler, AdbCredentialStore, AdbDefaultAuthenticators } from './auth';
|
||||
import { AdbFrameBuffer, AdbPower, AdbReverseCommand, AdbSubprocess, AdbSync, AdbTcpIpCommand, escapeArg, framebuffer, install } from './commands';
|
||||
import { AdbAuthenticationHandler, AdbDefaultAuthenticators, type AdbCredentialStore } from './auth';
|
||||
import { AdbPower, AdbReverseCommand, AdbSubprocess, AdbSync, AdbTcpIpCommand, escapeArg, framebuffer, install, type AdbFrameBuffer } from './commands';
|
||||
import { AdbFeatures } from './features';
|
||||
import { AdbCommand, AdbPacket, AdbPacketCore, AdbPacketInit, AdbPacketSerializeStream, calculateChecksum } from './packet';
|
||||
import { AdbCommand, AdbPacket, AdbPacketSerializeStream, calculateChecksum, type AdbPacketCore, type AdbPacketInit } from './packet';
|
||||
import { AdbPacketDispatcher, AdbSocket } from './socket';
|
||||
import { AbortController, DecodeUtf8Stream, GatherStringStream, pipeFrom, ReadableWritablePair, StructDeserializeStream, WritableStream } from "./stream";
|
||||
import { AbortController, DecodeUtf8Stream, GatherStringStream, pipeFrom, StructDeserializeStream, WritableStream, type ReadableWritablePair } from "./stream";
|
||||
import { decodeUtf8, encodeUtf8 } from "./utils";
|
||||
|
||||
export enum AdbPropKey {
|
||||
|
|
|
@ -2,7 +2,7 @@ import { PromiseResolver } from '@yume-chan/async';
|
|||
import type { Disposable } from '@yume-chan/event';
|
||||
import type { ValueOrPromise } from '@yume-chan/struct';
|
||||
import { calculatePublicKey, calculatePublicKeyLength, sign } from './crypto';
|
||||
import { AdbCommand, AdbPacket, AdbPacketCore } from './packet';
|
||||
import { AdbCommand, AdbPacket, type AdbPacketCore } from './packet';
|
||||
import { calculateBase64EncodedLength, encodeBase64 } from './utils';
|
||||
|
||||
export type AdbKeyIterable = Iterable<Uint8Array> | AsyncIterable<Uint8Array>;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { PromiseResolver } from "@yume-chan/async";
|
||||
import Struct, { placeholder, StructValueType } from "@yume-chan/struct";
|
||||
import Struct, { placeholder, type StructValueType } from "@yume-chan/struct";
|
||||
import type { Adb } from "../../adb";
|
||||
import { AdbFeatures } from "../../features";
|
||||
import type { AdbSocket } from "../../socket";
|
||||
import { PushReadableStream, PushReadableStreamController, ReadableStream, StructDeserializeStream, StructSerializeStream, TransformStream, WritableStream, WritableStreamDefaultWriter } from "../../stream";
|
||||
import { PushReadableStream, ReadableStream, StructDeserializeStream, StructSerializeStream, TransformStream, WritableStream, WritableStreamDefaultWriter, type PushReadableStreamController } from "../../stream";
|
||||
import { encodeUtf8 } from "../../utils";
|
||||
import type { AdbSubprocessProtocol } from "./types";
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import Struct, { StructAsyncDeserializeStream, StructLike, StructValueType } from '@yume-chan/struct';
|
||||
import Struct, { type StructAsyncDeserializeStream, type StructLike, type StructValueType } from '@yume-chan/struct';
|
||||
import type { AdbBufferedStream } from '../../stream';
|
||||
import { decodeUtf8 } from "../../utils";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { AsyncOperationManager } from '@yume-chan/async';
|
||||
import { AutoDisposable, EventEmitter } from '@yume-chan/event';
|
||||
import { AdbCommand, AdbPacket, AdbPacketCore, AdbPacketInit, calculateChecksum } from '../packet';
|
||||
import { AbortController, ReadableWritablePair, WritableStream, WritableStreamDefaultWriter } from '../stream';
|
||||
import { AdbCommand, AdbPacket, calculateChecksum, type AdbPacketCore, type AdbPacketInit } from '../packet';
|
||||
import { AbortController, WritableStream, WritableStreamDefaultWriter, type ReadableWritablePair } from '../stream';
|
||||
import { decodeUtf8, encodeUtf8 } from '../utils';
|
||||
import { AdbSocket } from './socket';
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { PromiseResolver } from "@yume-chan/async";
|
||||
import { AdbCommand } from '../packet';
|
||||
import { ChunkStream, DuplexStreamFactory, pipeFrom, PushReadableStreamController, ReadableStream, WritableStream } from '../stream';
|
||||
import { ChunkStream, DuplexStreamFactory, pipeFrom, ReadableStream, WritableStream, type PushReadableStreamController } from '../stream';
|
||||
import type { AdbPacketDispatcher } from './dispatcher';
|
||||
|
||||
export interface AdbSocketInfo {
|
||||
|
|
|
@ -3,7 +3,7 @@ import type Struct from "@yume-chan/struct";
|
|||
import type { StructValueType } from "@yume-chan/struct";
|
||||
import { decodeUtf8 } from "../utils";
|
||||
import { BufferedStream, BufferedStreamEndedError } from "./buffered";
|
||||
import { AbortController, AbortSignal, QueuingStrategy, ReadableStream, ReadableStreamController, ReadableStreamDefaultReader, ReadableWritablePair, TransformStream, UnderlyingSink, UnderlyingSource, WritableStream, WritableStreamDefaultWriter } from "./detect";
|
||||
import { AbortController, AbortSignal, ReadableStream, ReadableStreamDefaultReader, TransformStream, WritableStream, WritableStreamDefaultWriter, type QueuingStrategy, type ReadableStreamController, type ReadableWritablePair, type UnderlyingSink, type UnderlyingSource } from "./detect";
|
||||
|
||||
export interface DuplexStreamFactoryOptions {
|
||||
preventCloseReadableStreams?: boolean | undefined;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Adb, AdbBufferedStream, AdbNoneSubprocessProtocol, AdbSocket, AdbSubprocessProtocol, DecodeUtf8Stream, InspectStream, ReadableStream, TransformStream, WritableStreamDefaultWriter } from '@yume-chan/adb';
|
||||
import { Adb, AdbBufferedStream, AdbNoneSubprocessProtocol, AdbSocket, DecodeUtf8Stream, InspectStream, ReadableStream, TransformStream, WritableStreamDefaultWriter, type AdbSubprocessProtocol } from '@yume-chan/adb';
|
||||
import { EventEmitter } from '@yume-chan/event';
|
||||
import Struct from '@yume-chan/struct';
|
||||
import { AndroidMotionEventAction, ScrcpyControlMessageType, ScrcpyInjectKeyCodeControlMessage, ScrcpyInjectTextControlMessage, ScrcpyInjectTouchControlMessage, type AndroidKeyEventAction } from './message';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { BufferedStreamEndedError, ReadableStream, TransformStream, type Adb, type AdbBufferedStream } from "@yume-chan/adb";
|
||||
import Struct, { placeholder } from "@yume-chan/struct";
|
||||
import type { AndroidCodecLevel, AndroidCodecProfile } from "../../codec";
|
||||
import { ScrcpyClientConnection, ScrcpyClientConnectionOptions, ScrcpyClientForwardConnection, ScrcpyClientReverseConnection } from "../../connection";
|
||||
import { ScrcpyClientConnection, ScrcpyClientForwardConnection, ScrcpyClientReverseConnection, type ScrcpyClientConnectionOptions } from "../../connection";
|
||||
import { AndroidKeyEventAction, ScrcpyControlMessageType } from "../../message";
|
||||
import type { ScrcpyBackOrScreenOnEvent1_18 } from "../1_18";
|
||||
import type { ScrcpyInjectScrollControlMessage1_22 } from "../1_22";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import type { Adb } from "@yume-chan/adb";
|
||||
import Struct from "@yume-chan/struct";
|
||||
import { ScrcpyClientConnectionOptions, ScrcpyClientForwardConnection, ScrcpyClientReverseConnection, type ScrcpyClientConnection } from "../connection";
|
||||
import { ScrcpyClientForwardConnection, ScrcpyClientReverseConnection, type ScrcpyClientConnection, type ScrcpyClientConnectionOptions } from "../connection";
|
||||
import { ScrcpyInjectScrollControlMessage1_16 } from "./1_16";
|
||||
import { ScrcpyOptions1_21, type ScrcpyOptionsInit1_21 } from "./1_21";
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
import type { StructAsyncDeserializeStream, StructDeserializeStream, StructFieldDefinition, StructFieldValue, StructOptions } from './basic';
|
||||
import { StructDefaultOptions, StructValue } from './basic';
|
||||
import { Syncbird } from "./syncbird";
|
||||
import { BigIntFieldDefinition, BigIntFieldType, BufferFieldSubType, FixedLengthBufferLikeFieldDefinition, FixedLengthBufferLikeFieldOptions, LengthField, NumberFieldDefinition, NumberFieldType, StringBufferFieldSubType, Uint8ArrayBufferFieldSubType, VariableLengthBufferLikeFieldDefinition, VariableLengthBufferLikeFieldOptions } from './types';
|
||||
import { BigIntFieldDefinition, BigIntFieldType, BufferFieldSubType, FixedLengthBufferLikeFieldDefinition, NumberFieldDefinition, NumberFieldType, StringBufferFieldSubType, Uint8ArrayBufferFieldSubType, VariableLengthBufferLikeFieldDefinition, type FixedLengthBufferLikeFieldOptions, type LengthField, type VariableLengthBufferLikeFieldOptions } from './types';
|
||||
import type { Evaluate, Identity, Overwrite, ValueOrPromise } from "./utils";
|
||||
|
||||
export interface StructLike<TValue> {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// cspell: ignore syncbird
|
||||
|
||||
import { getBigInt64, getBigUint64, setBigInt64, setBigUint64 } from '@yume-chan/dataview-bigint-polyfill/esm/fallback';
|
||||
import { StructAsyncDeserializeStream, StructDeserializeStream, StructFieldDefinition, StructFieldValue, StructOptions, StructValue } from "../basic";
|
||||
import { StructFieldDefinition, StructFieldValue, StructValue, type StructAsyncDeserializeStream, type StructDeserializeStream, type StructOptions } from "../basic";
|
||||
import { Syncbird } from "../syncbird";
|
||||
import type { ValueOrPromise } from "../utils";
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
// cspell: ignore syncbird
|
||||
|
||||
import { StructAsyncDeserializeStream, StructDeserializeStream, StructFieldDefinition, StructFieldValue, StructOptions, StructValue } from '../../basic';
|
||||
import { StructFieldDefinition, StructFieldValue, StructValue, type StructAsyncDeserializeStream, type StructDeserializeStream, type StructOptions } from '../../basic';
|
||||
import { Syncbird } from "../../syncbird";
|
||||
import { decodeUtf8, encodeUtf8, ValueOrPromise } from "../../utils";
|
||||
import { decodeUtf8, encodeUtf8, type ValueOrPromise } from "../../utils";
|
||||
|
||||
/**
|
||||
* Base class for all types that
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// cspell: ignore syncbird
|
||||
|
||||
import { StructAsyncDeserializeStream, StructDeserializeStream, StructFieldDefinition, StructFieldValue, StructOptions, StructValue } from '../basic';
|
||||
import { StructFieldDefinition, StructFieldValue, StructValue, type StructAsyncDeserializeStream, type StructDeserializeStream, type StructOptions } from '../basic';
|
||||
import { Syncbird } from "../syncbird";
|
||||
import type { ValueOrPromise } from "../utils";
|
||||
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
"noImplicitThis": true,
|
||||
"noUncheckedIndexedAccess": true,
|
||||
"resolveJsonModule": true,
|
||||
"importsNotUsedAsValues": "error",
|
||||
/* Module Resolution Options */
|
||||
"moduleResolution": "Node", // /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
|
||||
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue