Class Record

Hierarchy

  • SchemaMember
    • Record

Constructors

Properties

[SC]: Schema

Accessors

  • get address(): string
  • Returns string

  • get deleted(): undefined | boolean
  • Returns undefined | boolean

  • get feed(): undefined | string
  • Returns undefined | string

  • get hasConflict(): boolean
  • Returns boolean

  • get id(): string
  • Returns string

  • get key(): undefined | string
  • Returns undefined | string

  • get length(): number
  • Returns number

  • Returns string[]

  • get lseq(): undefined | number
  • Returns undefined | number

  • get path(): string
  • Returns string

  • Returns Schema

  • get seq(): undefined | number
  • Returns undefined | number

  • get shortAddress(): string
  • Returns string

  • get timestamp(): string | 0
  • Returns string | 0

  • get type(): string
  • Returns string

Methods

  • get(fieldName: string): any
  • Parameters

    • fieldName: string

    Returns any

  • getField(fieldName: string): undefined | Field
  • Parameters

    • fieldName: string

    Returns undefined | Field

  • getMany(fieldName: string): any[]
  • Parameters

    • fieldName: string

    Returns any[]

  • getOne(fieldName: string): any
  • Parameters

    • fieldName: string

    Returns any

  • getType(): undefined | Type
  • Returns undefined | Type

  • hasField(fieldName: string): boolean
  • Parameters

    • fieldName: string

    Returns boolean

  • hasType(typeAddress: string): boolean
  • Parameters

    • typeAddress: string

    Returns boolean

  • subscribe(fn: EmitCb<Record>, triggerNow?: boolean): (() => void)
  • Subscribe to changes to this record.

    Parameters

    Returns (() => void)

      • (): void
      • Subscribe to changes to this record.

        Returns void

  • toJSON(): { deleted: undefined | boolean; id: string; key: undefined | string; links: string[]; lseq: undefined | number; seq: undefined | number; timestamp: string | number; type: string; value: RecordValue }
  • Returns { deleted: undefined | boolean; id: string; key: undefined | string; links: string[]; lseq: undefined | number; seq: undefined | number; timestamp: string | number; type: string; value: RecordValue }

    • deleted: undefined | boolean
    • id: string
    • key: undefined | string
    • links: string[]
    • lseq: undefined | number
    • seq: undefined | number
    • timestamp: string | number
    • type: string
    • value: RecordValue

Generated using TypeDoc