typesafe params

This commit is contained in:
Dennis Postma 2024-09-19 09:47:08 +02:00
parent 835b6bcc3a
commit 3878a02b4f

View File

@ -123,7 +123,7 @@ watch(
{ immediate: true, deep: true }
)
const calcDirection = (oldX, oldY, newX, newY) => {
const calcDirection = (oldX: number, oldY: number, newX: number, newY: number) => {
if (newY < oldY || newX < oldX) {
return Direction.NEGATIVE
}