@medic/cht-datasource
    Preparing search index...

    Interface DataContext

    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;
    }
    Index

    Properties

    Properties

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

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

    Type declaration

      • <T>(fn: (ctx: DataContext) => T): T
      • Type Parameters

        • T

        Parameters

        Returns T

        the result of the function