From 866cabf3845ef5676dcd10ea53874fab669f2de7 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Mon, 9 Dec 2024 15:11:45 +0200 Subject: [PATCH] docs-util: normalize RelationNullableModifier in model references (#10505) --- .../packages/typedoc-plugin-custom/src/dml-types-normalizer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/utils/packages/typedoc-plugin-custom/src/dml-types-normalizer.ts b/www/utils/packages/typedoc-plugin-custom/src/dml-types-normalizer.ts index 7a2c65c8ac2f6..0f73edc38cfa7 100644 --- a/www/utils/packages/typedoc-plugin-custom/src/dml-types-normalizer.ts +++ b/www/utils/packages/typedoc-plugin-custom/src/dml-types-normalizer.ts @@ -28,7 +28,8 @@ export function load(app: Application) { function normalizeNullable(reflection: DeclarationReflection) { if ( reflection.type?.type !== "reference" || - reflection.type.name !== "NullableModifier" || + (reflection.type.name !== "NullableModifier" && + reflection.type.name !== "RelationNullableModifier") || !reflection.type.typeArguments || reflection.type.typeArguments.length < 2 ) {