diff --git a/packages/core/types/src/modules/entity-service/params/filters/index.ts b/packages/core/types/src/modules/entity-service/params/filters/index.ts index 0767137e48..64267b994d 100644 --- a/packages/core/types/src/modules/entity-service/params/filters/index.ts +++ b/packages/core/types/src/modules/entity-service/params/filters/index.ts @@ -58,23 +58,19 @@ export type AttributesFiltering = Utils.Gu * Definition of scalar attribute filtering for a given schema UID. * @template TSchemaUID - The UID of the schema. */ -export type ScalarAttributesFiltering = - AttributeUtils.GetScalarKeys extends infer TKeys - ? TKeys extends AttributeUtils.GetScalarKeys - ? IDFiltering & { [TKey in TKeys]?: AttributeCondition } - : never - : never; +export type ScalarAttributesFiltering = IDFiltering & { + [TKey in AttributeUtils.GetScalarKeys]?: AttributeCondition; +}; /** * Filters object for nested schema attributes. * @template TSchemaUID - The UID of the schema to perform filtering on. */ -export type NestedAttributeFiltering = - AttributeUtils.GetNestedKeys extends infer TKeys - ? TKeys extends AttributeUtils.GetNestedKeys - ? { [TKey in TKeys]?: ObjectNotation> } - : never - : never; +export type NestedAttributeFiltering = { + [TKey in AttributeUtils.GetNestedKeys]?: ObjectNotation< + Attribute.GetTarget + >; +}; type IDFiltering = { id?: AttributeCondition };