From f531474be0fdc84ff6c5a78655e430a15f383dc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Fri, 27 Feb 2026 01:38:32 +0100 Subject: [PATCH] nicolium/pl-api: remove `as any` from coerceObject MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- packages/nicolium/src/schemas/utils.ts | 4 ++-- packages/pl-api/lib/entities/utils.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/nicolium/src/schemas/utils.ts b/packages/nicolium/src/schemas/utils.ts index 9a0de63b4..93ebb319e 100644 --- a/packages/nicolium/src/schemas/utils.ts +++ b/packages/nicolium/src/schemas/utils.ts @@ -15,7 +15,7 @@ const filteredArray = (schema: v.BaseSchema>) => ); /** valibot schema to force the value into an object, if it isn't already. */ -const coerceObject = (shape: T): v.ObjectSchema => +const coerceObject = (shape: T) => v.optional( v.pipe( v.any(), @@ -23,6 +23,6 @@ const coerceObject = (shape: T): v.ObjectSchema(shape: T): v.ObjectSchema => +const coerceObject = (shape: T) => v.optional( v.pipe( v.any(), @@ -44,6 +44,6 @@ const coerceObject = (shape: T): v.ObjectSchema