From 0943c9974978433c59f768b405987a614e9640a3 Mon Sep 17 00:00:00 2001 From: Fluffy Date: Tue, 14 May 2024 12:57:47 +0100 Subject: [PATCH] switch data type to any (need to fix) Skip quality check on utils --- front/src/lib/types.ts | 2 +- front/src/lib/utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/front/src/lib/types.ts b/front/src/lib/types.ts index 91758d3..72d349a 100644 --- a/front/src/lib/types.ts +++ b/front/src/lib/types.ts @@ -22,6 +22,6 @@ export type CartItem = { }; export type JSONResponse = { - data?: { item: Item[] }; + data?: any; // Todo make this _not_ an any error?: string; }; diff --git a/front/src/lib/utils.js b/front/src/lib/utils.js index d5ece3e..726a1f3 100644 --- a/front/src/lib/utils.js +++ b/front/src/lib/utils.js @@ -1,6 +1,6 @@ export function expandOnTyping(element) { element.oninput = (event) => { - event.target.style.height = ""; + event.target.style.height = ""; // skipcq: JS-W1032 event.target.style.height = `${event.target.scrollHeight + 2}px`; }; }