Skip to main content

Twin <TProject, TProduct, TEntityType, TUnit>

A loaded twin: its id, the version that was loaded, and the client model when one was loaded.

TwinClient's loaders return plain objects of this shape, never instances of the class, so use it as a type.

Index

Constructors

Properties

Constructors

constructor

  • new Twin<TProject, TProduct, TEntityType, TUnit>(): Twin<TProject, TProduct, TEntityType, TUnit>
  • Type parameters

    • TProject
    • TProduct
    • TEntityType
    • TUnit

    Returns Twin<TProject, TProduct, TEntityType, TUnit>

Properties

id

id: string

optionalmodel

model?: T8ClientModel<TProject, TProduct, TEntityType, TUnit>

version

version: number
Page Options