UNPKG

vis-data

Version:

Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.

10 lines 553 B
import type { DataView } from "./data-view.ts"; import type { PartItem } from "./data-interface.ts"; /** * Check that given value is compatible with Vis Data View interface. * @param idProp - The expected property to contain item id. * @param v - The value to be tested. * @returns True if all expected values and methods match, false otherwise. */ export declare function isDataViewLike<Item extends PartItem<IdProp>, IdProp extends string = "id">(idProp: IdProp, v: any): v is DataView<Item, IdProp>; //# sourceMappingURL=data-view-check.d.ts.map