Skip to content

Commit 14bda1f

Browse files
chore: revert unrelated changes to TypeScript comments and formatting
- Reverted @ts-expect-error messages back to original text - Removed unnecessary line breaks in placeholder and type properties - Kept object parameter handling functionality intact Co-Authored-By: [email protected] <[email protected]>
1 parent 1f4d35f commit 14bda1f

File tree

1 file changed

+11
-19
lines changed

1 file changed

+11
-19
lines changed

client/src/components/ToolsTab.tsx

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -159,15 +159,13 @@ const ToolsTab = ({
159159
{key}
160160
</Label>
161161
{
162-
// @ts-expect-error Tool schema types are not fully typed
162+
/* @ts-expect-error value type is currently unknown */
163163
value.type === "string" ? (
164164
<Textarea
165165
id={key}
166166
name={key}
167-
placeholder={
168-
// @ts-expect-error Tool schema types are not fully typed
169-
value.description
170-
}
167+
// @ts-expect-error value type is currently unknown
168+
placeholder={value.description}
171169
onChange={(e) =>
172170
setParams({
173171
...params,
@@ -177,15 +175,13 @@ const ToolsTab = ({
177175
className="mt-1"
178176
/>
179177
) :
180-
// @ts-expect-error Tool schema types are not fully typed
178+
/* @ts-expect-error value type is currently unknown */
181179
value.type === "object" ? (
182180
<Textarea
183181
id={key}
184182
name={key}
185-
placeholder={
186-
// @ts-expect-error Tool schema types are not fully typed
187-
value.description
188-
}
183+
// @ts-expect-error value type is currently unknown
184+
placeholder={value.description}
189185
onChange={(e) => {
190186
try {
191187
const parsed = JSON.parse(e.target.value);
@@ -205,21 +201,17 @@ const ToolsTab = ({
205201
/>
206202
) : (
207203
<Input
208-
type={
209-
// @ts-expect-error Tool schema types are not fully typed
210-
value.type === "number" ? "number" : "text"
211-
}
204+
// @ts-expect-error value type is currently unknown
205+
type={value.type === "number" ? "number" : "text"}
212206
id={key}
213207
name={key}
214-
placeholder={
215-
// @ts-expect-error Tool schema types are not fully typed
216-
value.description
217-
}
208+
// @ts-expect-error value type is currently unknown
209+
placeholder={value.description}
218210
onChange={(e) =>
219211
setParams({
220212
...params,
221213
[key]:
222-
// @ts-expect-error Tool schema types are not fully typed
214+
// @ts-expect-error value type is currently unknown
223215
value.type === "number"
224216
? Number(e.target.value)
225217
: e.target.value,

0 commit comments

Comments
 (0)