Allow UID.Component to be generic for inferrence

This commit is contained in:
Convly 2023-05-17 12:31:23 +02:00
parent aa9cb0529a
commit 015dd9ffcc

View File

@ -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 extends string = string, N extends string = string> = `${T}.${N}`;
/**
* Represents any UID