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

Unverified Commit a80fde87 authored by Simon Chan's avatar Simon Chan
Browse files

feat(scrcpy): support new options of 1.24

parent 077bf087
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
import { ScrcpyOptions1_23, type ScrcpyOptionsInit1_23 } from './1_23.js';

export interface ScrcpyOptionsInit1_24 extends ScrcpyOptionsInit1_23 {
    powerOn: boolean;
}

export class ScrcpyOptions1_24<T extends ScrcpyOptionsInit1_24 = ScrcpyOptionsInit1_24> extends ScrcpyOptions1_23<T> {
    public constructor(init: Partial<ScrcpyOptionsInit1_24>) {
        super(init);
    }

    protected override getDefaultValue(): T {
        return {
            ...super.getDefaultValue(),
            powerOn: true,
        };
    }
}