Interface GridStore<DictVal>

Implements the storage for an HGrid.

This separates the HGrid interface from the actual storage, which could be backed by a native one.

interface GridStore<DictVal extends HDict> {
    "[GRID_STORE_SYMBOL]": symbol;
    columns: GridColumn[];
    meta: HDict;
    rows: DictVal[];
    version: string;
    toJSON(): HaysonGrid;
    toJSONString(): string;
    toJSONUint8Array(): Uint8Array;
}

Type Parameters

Implemented by

Properties

"[GRID_STORE_SYMBOL]": symbol

Indicates this is a grid store.

columns: GridColumn[]

The stores's columns.

meta: HDict

The stores's meta data.

rows: DictVal[]

The store's rows.

version: string

The grid's version number.

Methods

  • Returns Uint8Array

    A byte buffer that has an encoded JSON string representation of the object.