typesafe params
This commit is contained in:
@ -123,7 +123,7 @@ watch(
|
|||||||
{ immediate: true, deep: true }
|
{ 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) {
|
if (newY < oldY || newX < oldX) {
|
||||||
return Direction.NEGATIVE
|
return Direction.NEGATIVE
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user