upgrade TS

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent cd78aaa0fd
commit 0a62fd730c
4 changed files with 43 additions and 42 deletions

View File

@@ -100,8 +100,9 @@ export class Replayer {
}
public setConfig(config: Partial<playerConfig>) {
Object.keys(config).forEach((key: keyof playerConfig) => {
this.config[key] = config[key]!;
Object.keys(config).forEach((key) => {
// @ts-ignore
this.config[key] = config[key];
});
if (!this.config.skipInactive) {
this.noramlSpeed = -1;