From deee8e885f3658ce8a0b549bdda5d20aa50164a4 Mon Sep 17 00:00:00 2001 From: Erik Michelson Date: Sat, 29 Mar 2025 13:50:20 +0100 Subject: [PATCH] fix(commons): type of deep partial utility type Signed-off-by: Erik Michelson --- commons/src/utils/deep-partial.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commons/src/utils/deep-partial.ts b/commons/src/utils/deep-partial.ts index 5777c99e6..8b8d27353 100644 --- a/commons/src/utils/deep-partial.ts +++ b/commons/src/utils/deep-partial.ts @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file) + * SPDX-FileCopyrightText: 2025 The HedgeDoc developers (see AUTHORS file) * * SPDX-License-Identifier: AGPL-3.0-only */ @@ -7,7 +7,7 @@ export type DeepPartial = T extends null | undefined ? T : T extends Array - ? Array> + ? Array> | undefined : T extends Record - ? { [P in keyof T]?: DeepPartial } - : T + ? { [P in keyof T]?: DeepPartial } | undefined + : Partial