vis-data
Version:
Manage unstructured data using DataSet. Add, update, and remove data, and listen for changes in the data.
10 lines • 547 B
TypeScript
import type { PartItem } from "./data-interface.ts";
import type { DataSet } from "./data-set.ts";
/**
* Check that given value is compatible with Vis Data Set 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 isDataSetLike<Item extends PartItem<IdProp>, IdProp extends string = "id">(idProp: IdProp, v: any): v is DataSet<Item, IdProp>;
//# sourceMappingURL=data-set-check.d.ts.map