From 015dd9ffcce2eee20ec57d8efdec8d8911de4b2e Mon Sep 17 00:00:00 2001 From: Convly Date: Wed, 17 May 2023 12:31:23 +0200 Subject: [PATCH] Allow UID.Component to be generic for inferrence --- packages/core/strapi/lib/types/core/uid.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/strapi/lib/types/core/uid.d.ts b/packages/core/strapi/lib/types/core/uid.d.ts index 6b82294bbb..3a088e2531 100644 --- a/packages/core/strapi/lib/types/core/uid.d.ts +++ b/packages/core/strapi/lib/types/core/uid.d.ts @@ -58,7 +58,7 @@ export type ContentType = StringSuffix< * * Warning: Can cause overlap with other UID formats. */ -export type Component = `${string}.${string}`; +export type Component = `${T}.${N}`; /** * Represents any UID