From f691bfd36e488d6940836bfee83b19d9422b06e3 Mon Sep 17 00:00:00 2001 From: "Vitaliy V. Makeev" Date: Wed, 24 Aug 2022 15:00:00 +0500 Subject: [PATCH] feat(Attribute): rename rename `EmbeddedEntityRefAttributeType` to `EmbeddedEntityAttributeType` BREAKING CHANGE --- src/model/Attribute.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/model/Attribute.ts b/src/model/Attribute.ts index c3acd7b..1c75069 100644 --- a/src/model/Attribute.ts +++ b/src/model/Attribute.ts @@ -27,7 +27,7 @@ export const embeddedEntityAttributeTypes = [ ] as const /** Типы атрибутов, значение которых является сущностью (ссылкой на сущность) */ -export type EmbeddedEntityRefAttributeType = +export type EmbeddedEntityAttributeType = typeof embeddedEntityAttributeTypes[number] /** Типы атрибутов */ @@ -36,7 +36,7 @@ export type AttributeType = | SimpleAttributeType // Embedded entity - | EmbeddedEntityRefAttributeType + | EmbeddedEntityAttributeType // File entity | 'file' @@ -106,7 +106,7 @@ export type AttributeValueByTypeMap = { export type Attribute = Entity<'attributemetadata'> & ( - T extends SimpleAttributeType | EmbeddedEntityRefAttributeType | 'customentity' + T extends SimpleAttributeType | EmbeddedEntityAttributeType | 'customentity' ? { /** Наименование пользовательского поля */ readonly name: string