TX Sheet Control

DataProvider Type

Interface

Host-supplied authenticated transport. The signal covers the entire query, not just response headers.

Package: @txtextcontrol/tx-sheet-control-server. Version: 2.0.0.

Type-only declaration; it is not a JavaScript runtime constructor.

Syntax

type DataProvider = (request: Readonly<DataRequest>, signal: AbortSignal) => Promise<DataSnapshot>;

Examples

Pass the DataProvider value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

import type { DataProvider } from '@txtextcontrol/tx-sheet-control-server';

function inspectDataProvider(dataProvider: DataProvider) {
    const value = dataProvider;
    console.log('DataProvider.value', value);
}

See Also