mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-03 09:49:24 +02:00
feat(adb-scrcpy): infer type of videoStream
from video
option
This commit is contained in:
parent
02f5bd5929
commit
24b65fd2c1
61 changed files with 653 additions and 336 deletions
|
@ -10,8 +10,10 @@ import {
|
|||
import type { AdbScrcpyConnection } from "./connection.js";
|
||||
import { AdbScrcpyOptions } from "./types.js";
|
||||
|
||||
export class AdbScrcpyOptions2_2 extends AdbScrcpyOptions<ScrcpyOptions2_2.Init> {
|
||||
constructor(init: ScrcpyOptions2_2.Init, version?: string) {
|
||||
export class AdbScrcpyOptions2_2<
|
||||
TVideo extends boolean,
|
||||
> extends AdbScrcpyOptions<ScrcpyOptions2_2.Init<TVideo>> {
|
||||
constructor(init: ScrcpyOptions2_2.Init<TVideo>, version?: string) {
|
||||
super(new ScrcpyOptions2_2(init, version));
|
||||
}
|
||||
|
||||
|
@ -29,5 +31,6 @@ export class AdbScrcpyOptions2_2 extends AdbScrcpyOptions<ScrcpyOptions2_2.Init>
|
|||
}
|
||||
|
||||
export namespace AdbScrcpyOptions2_2 {
|
||||
export type Init = ScrcpyOptions2_2.Init;
|
||||
export type Init<TVideo extends boolean = boolean> =
|
||||
ScrcpyOptions2_2.Init<TVideo>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue