File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export class Tween<T extends UnknownProps> {
2121 private _isPaused = false
2222 private _pauseStart = 0
2323 private _valuesStart : UnknownProps = { }
24- private _valuesEnd : UnknownProps = { }
24+ private _valuesEnd : Record < string , number | string > = { }
2525 private _valuesStartRepeat : UnknownProps = { }
2626 private _duration = 1000
2727 private _initialRepeat = 0
@@ -477,11 +477,10 @@ export class Tween<T extends UnknownProps> {
477477
478478 private _swapEndStartRepeatValues ( property : string ) : void {
479479 const tmp = this . _valuesStartRepeat [ property ]
480+ const endValue = this . _valuesEnd [ property ]
480481
481- if ( typeof this . _valuesEnd [ property ] === 'string' ) {
482- // eslint-disable-next-line
483- // @ts -ignore FIXME?
484- this . _valuesStartRepeat [ property ] = this . _valuesStartRepeat [ property ] + parseFloat ( this . _valuesEnd [ property ] )
482+ if ( typeof endValue === 'string' ) {
483+ this . _valuesStartRepeat [ property ] = this . _valuesStartRepeat [ property ] + parseFloat ( endValue )
485484 } else {
486485 this . _valuesStartRepeat [ property ] = this . _valuesEnd [ property ]
487486 }
@@ -490,6 +489,7 @@ export class Tween<T extends UnknownProps> {
490489 }
491490}
492491
493- export type UnknownProps = Record < string , unknown >
492+ // eslint-disable-next-line
493+ export type UnknownProps = Record < string , any >
494494
495495export default Tween
You can’t perform that action at this time.
0 commit comments