fix: declared type name

This commit is contained in:
Keisuke Hirata 2024-08-26 19:12:42 +09:00
parent f8337b37bf
commit e7949b6c5f

View File

@ -3,14 +3,14 @@
let cursor: HTMLDivElement;
type position = {
type pos = {
x: number;
y: number;
};
let disabled = false;
let rawPosition: position = { x: 0, y: -100 };
let position: position = { x: 0, y: 0 };
let rawPosition: pos = { x: 0, y: -100 };
let position: pos = { x: 0, y: 0 };
onMount(() => {
window.addEventListener('mousemove', (e) => {