From 537b565da2a6bb0335b595d2d9ab8e2516dd0a71 Mon Sep 17 00:00:00 2001 From: Jan Leon Date: Tue, 30 Jun 2026 00:14:15 +0200 Subject: [PATCH] chore: remove unused playground row type (#5401) Integrated into release/v3.8.42 --- src/shared/schemas/playground.ts | 1 - tests/unit/playground-schemas.test.ts | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/schemas/playground.ts b/src/shared/schemas/playground.ts index af7cdac650..228ef1cebf 100644 --- a/src/shared/schemas/playground.ts +++ b/src/shared/schemas/playground.ts @@ -11,7 +11,6 @@ export const PlaygroundPresetRowSchema = z.object({ params_json: z.string(), // JSON serializado (parsed na rota) created_at: z.string().datetime(), }); -export type PlaygroundPresetRow = z.infer; /** Body de POST /api/playground/presets. */ export const PlaygroundPresetCreateSchema = z.object({ diff --git a/tests/unit/playground-schemas.test.ts b/tests/unit/playground-schemas.test.ts index 4744ecd0b0..8fe263c64e 100644 --- a/tests/unit/playground-schemas.test.ts +++ b/tests/unit/playground-schemas.test.ts @@ -30,6 +30,7 @@ test("PlaygroundPresetRowSchema: valid row parses correctly", () => { assert.equal(result.data.id, row.id); assert.equal(result.data.name, row.name); assert.equal(result.data.system, "You are helpful."); + assert.equal(result.data.params_json, row.params_json); } });