diff --git a/packages/core/strapi/lib/types/core/registry.d.ts b/packages/core/strapi/lib/types/core/registry.d.ts index c204bb2a20..7efb556a2d 100644 --- a/packages/core/strapi/lib/types/core/registry.d.ts +++ b/packages/core/strapi/lib/types/core/registry.d.ts @@ -51,7 +51,7 @@ export type Keys = Extract; * type T = keyof WhereKeys; * // ^ "plugin::foo.bar" | "admin::foo" | "admin::bar" * - * type T = keyof WhereKeys }>; + * type T = keyof WhereKeys }>; * // ^ "api::foo.bar" | "api::foo.baz" */ export type WhereKeys, U extends UID.Any = UID.Any> = { diff --git a/packages/core/strapi/lib/types/utils.d.ts b/packages/core/strapi/lib/types/utils.d.ts index d09cffd5f7..adb16e8880 100644 --- a/packages/core/strapi/lib/types/utils.d.ts +++ b/packages/core/strapi/lib/types/utils.d.ts @@ -10,9 +10,9 @@ export type Literal = string | number | bigint | boolean; /** - * Used to check if a string contains a given literal + * Used to check if a string includes a given literal */ -export type Contains = `${string}${S}${string}`; +export type Includes = `${string}${S}${string}`; /** * Used to make sure the given string is not empty