🔨 fix type issue
This commit is contained in:
@@ -15,7 +15,7 @@ const spring = { x: 0, v: 0, target: 0 };
|
||||
const springParams = { tension: 120, friction: 20, maxVelocity: 50 };
|
||||
let animationFrame: number;
|
||||
|
||||
const { canvas, highlightCell, drawLerp } = createCanvas(grid);
|
||||
const { canvas, drawLerp } = createCanvas(grid);
|
||||
document.body.appendChild(canvas);
|
||||
|
||||
const clamp = (x: number, a: number, b: number) => Math.max(a, Math.min(b, x));
|
||||
|
||||
@@ -24,7 +24,7 @@ const createForm = ({
|
||||
form.style.display = "flex";
|
||||
form.style.flexDirection = "row";
|
||||
const input = document.createElement("input");
|
||||
input.addEventListener("input", (e) => onChangeUserName(input.value));
|
||||
input.addEventListener("input", () => onChangeUserName(input.value));
|
||||
input.style.padding = "16px";
|
||||
input.placeholder = "github user";
|
||||
const submit = document.createElement("button");
|
||||
|
||||
Reference in New Issue
Block a user