Interface DataSourceAPI<T>

interface DataSourceAPI<T> {
    dataSource: DataSourceAPI<T>;
    length: number;
    get(index: number): MaybePromiseOrUndef<T>;
    getField<F>(index: number, field: F): any;
    hasField(index: number, field: FieldDef<T>): boolean;
    setField<F>(index: number, field: F, value: any): MaybePromise<boolean>;
    sort(field: FieldDef<T>, order: "desc" | "asc"): MaybePromise<void>;
}

Type Parameters

  • T

Implemented by

Properties

dataSource: DataSourceAPI<T>
length: number

Methods

  • Type Parameters

    Parameters

    • index: number
    • field: F

    Returns any

  • Parameters

    Returns boolean