Open oakcreations opened 2 years ago
This error happens during project build tsdx 0.14.1 & @vime/react: 5.3.1
My code:
const ref = useRef<HTMLVmPlayerElement>(null); const [currentTime, setCurrentTime] = usePlayerContext(ref, 'currentTime', 0); const [duration] = usePlayerContext(ref, 'duration', -1); const onTapBackward = () => { if (currentTime < seconds) setCurrentTime(0); setCurrentTime(currentTime - seconds); };
This error happens when it hits the setCurrentTime line
semantic error TS2349: This expression is not callable. Type 'Number' has no call signatures.
This error happens during project build tsdx 0.14.1 & @vime/react: 5.3.1
My code:
This error happens when it hits the setCurrentTime line
semantic error TS2349: This expression is not callable. Type 'Number' has no call signatures.