mirror of
https://github.com/strapi/strapi.git
synced 2025-08-13 03:07:32 +00:00
Allow UID.Component to be generic for inferrence
This commit is contained in:
parent
aa9cb0529a
commit
015dd9ffcc
2
packages/core/strapi/lib/types/core/uid.d.ts
vendored
2
packages/core/strapi/lib/types/core/uid.d.ts
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user