typesafe params
This commit is contained in:
parent
835b6bcc3a
commit
3878a02b4f
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user