Options
All
  • Public
  • Public/Protected
  • All
Menu

@textile/threaddb

Index

Type aliases

Document

Document<T>: T & { _id: string }

Document is any JSON object with an _id field. It can be operated on directly, and its updates should be reflected in its saved state.

Type parameters

  • T: unknown

Variables

Const ThreadIDName

ThreadIDName: "thread-id" = "thread-id"

Const decoder

decoder: TextDecoder = new TextDecoder()

Const encoder

encoder: TextEncoder = new TextEncoder()

Functions

DocumentInstanceClassFactory

Object literals

Const Errors

Errors: object

ChangeError

ChangeError: Error = new Error("Unable to process db change(s)")

LocalChangesError

LocalChangesError: Error = new Error("Unpushed local changes")

MissingDbError

MissingDbError: Error = new Error("Missing remote db/thread")

NoRemoteError

NoRemoteError: Error = new Error("No remote service host specified")

RemoteError

RemoteError: Error = new Error("Remote operation failed")

ThreadExists

ThreadExists: Error = new Error("Remote db/thread already exists")

ThreadIDError

ThreadIDError: Error = new Error("Missing/invalid thread id")