From fe1716ed017a77649533ff1868f300b6d7dcc8e0 Mon Sep 17 00:00:00 2001 From: dswbx Date: Wed, 2 Jul 2025 17:59:38 +0200 Subject: [PATCH] fix secret schema --- app/src/core/object/schema/secret.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/core/object/schema/secret.ts b/app/src/core/object/schema/secret.ts index d8f141b2..7eae592e 100644 --- a/app/src/core/object/schema/secret.ts +++ b/app/src/core/object/schema/secret.ts @@ -2,6 +2,5 @@ import { StringSchema, type IStringOptions } from "jsonv-ts"; export class SecretSchema extends StringSchema {} -export const secret = (o?: O) => { - return new SecretSchema(o); -}; +export const secret = (o?: O): SecretSchema & O => + new SecretSchema(o) as any;