React Common Types - data - custom-store

GroupItem

An additional type for LoadResult.

import { GroupItem } from "devextreme/common/data"
Type:

Object

isGroupItemsArray

A type guard function that checks whether LoadResult is an array of GroupItems.

import { isGroupItemsArray } from "devextreme/common/data"

isItemsArray

A type guard function that checks whether LoadResult is an array of items.

import { isItemsArray } from "devextreme/common/data"

isLoadResultObject

A type guard function that checks whether LoadResult is a LoadResultObject.

import { isLoadResultObject } from "devextreme/common/data"

LoadResult

Specifies returned data of the load() method in CustomStore.

import { LoadResult } from "devextreme/common/data"
Type:

Object

Can be an array of items, GroupItems, or a LoadResultObject.

LoadResultObject

An additional type for LoadResult.

import { LoadResultObject } from "devextreme/common/data"
Type:

Object

Includes the following fields:

  • data
    Contains an array of items or GroupItems.

  • totalCount

  • summary

  • groupCount