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