Skip to content

EntityState

Defined in: libs/content-revision/src/lib/canonical.ts:40

Everything about a thing that a revision covers: its type, its attributes and the roles it plays. What canonical encodes and computeRevision hashes.

Properties

Name Description
attributes Its attributes, in any order: the encoding sorts them.
roles The roles it plays, in any order: the encoding sorts them.
type The thing’s type label.

readonly attributes: readonly CanonicalAttribute[]

Defined in: libs/content-revision/src/lib/canonical.ts:44

Its attributes, in any order: the encoding sorts them.


readonly roles: readonly CanonicalRole[]

Defined in: libs/content-revision/src/lib/canonical.ts:46

The roles it plays, in any order: the encoding sorts them.


readonly type: string

Defined in: libs/content-revision/src/lib/canonical.ts:42

The thing’s type label.

TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.