upgrade TS

This commit is contained in:
Yanzhen Yu
2020-04-12 00:06:57 +08:00
parent 1bb7ffd8fc
commit f159d7711f
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;