🚨 Announcing Vendure v2 Beta

interfaces

ChannelAware

Entities which can be assigned to Channels should implement this interface.

Signature

interface ChannelAware {
  channels: Channel[];
}

Members

channels

property
type:
Channel[]

SoftDeletable

Entities which can be soft deleted should implement this interface.

Signature

interface SoftDeletable {
  deletedAt: Date | null;
}

Members

deletedAt

property
type:
Date | null

Orderable

Entities which can be ordered relative to their siblings in a list.

Signature

interface Orderable {
  position: number;
}

Members

position

property
type:
number

Taggable

Entities which can have Tags applied to them.

Signature

interface Taggable {
  tags: Tag[];
}

Members

tags

property
type:
Tag[]

Translatable

Entities which have localizable string properties should implement this type.

Signature

interface Translatable {
  translations: Array<Translation<VendureEntity>>;
}

Members

translations

property
type:
Array<Translation<VendureEntity>>