Skip to content

Commit

Permalink
feat(Attribute): rename
Browse files Browse the repository at this point in the history
rename `EmbeddedEntityRefAttributeType` to `EmbeddedEntityAttributeType`

BREAKING CHANGE
  • Loading branch information
wmakeev committed Aug 24, 2022
1 parent 66b8083 commit f691bfd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/model/Attribute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const embeddedEntityAttributeTypes = [
] as const

/** Типы атрибутов, значение которых является сущностью (ссылкой на сущность) */
export type EmbeddedEntityRefAttributeType =
export type EmbeddedEntityAttributeType =
typeof embeddedEntityAttributeTypes[number]

/** Типы атрибутов */
Expand All @@ -36,7 +36,7 @@ export type AttributeType =
| SimpleAttributeType

// Embedded entity
| EmbeddedEntityRefAttributeType
| EmbeddedEntityAttributeType

// File entity
| 'file'
Expand Down Expand Up @@ -106,7 +106,7 @@ export type AttributeValueByTypeMap = {
export type Attribute<T extends AttributeType = AttributeType> =
Entity<'attributemetadata'> &
(
T extends SimpleAttributeType | EmbeddedEntityRefAttributeType | 'customentity'
T extends SimpleAttributeType | EmbeddedEntityAttributeType | 'customentity'
? {
/** Наименование пользовательского поля */
readonly name: string
Expand Down

0 comments on commit f691bfd

Please sign in to comment.