Skip to content

Commit a6a7771

Browse files
committed
fix types
1 parent df156e0 commit a6a7771

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/index.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -693,15 +693,18 @@ function getFunctions(time: number = thisLayer.time) {
693693
const progress = keyedAnimation.map((dimension, index) =>
694694
thisLayer.linear(
695695
dimension,
696-
keyOne.value[index],
697-
keyTwo.value[index],
696+
// We know these are vectors, since keyedAnimation
697+
// is an array
698+
(keyOne.value as Vector)[index],
699+
(keyTwo.value as Vector)[index],
698700
0,
699701
1
700702
)
701703
) as Vector;
702704

703705
return valueStart.map(
704-
(dimension, index) => dimension + valueDelta[index] * progress[index]
706+
(dimension, index) =>
707+
dimension + (valueDelta as Vector)[index] * progress[index]
705708
);
706709
}
707710

0 commit comments

Comments
 (0)