Context for interacting with the data. This may represent a local data context where data can be accessed even while offline. Or it may represent a remote data context where all data operations are performed against a remote CHT instance.

interface DataContext {
    bind: (<T>(fn: ((ctx: DataContext) => T)) => T);
}

Properties

Properties

bind: (<T>(fn: ((ctx: DataContext) => T)) => T)

Executes the provided function with this data context as the argument.

Type declaration

    • <T>(fn): T
    • Type Parameters

      • T

      Parameters

      Returns T

      the result of the function