Skip to main content

Type parameters

Name
TData

Properties#

data#

data: object

Type declaration:#

NameType
existingundefined | TData
incomingTData

Defined in: react/src/query/usePaginatedQuery.ts:22


sortBy#

sortBy: <TNode>(list: TNode[], cb: (node: TNode) => number | string, order: "asc" | "desc") => TNode[]

Type declaration:#

▸ <TNode>(list: TNode[], cb: (node: TNode) => number | string, order?: "asc" | "desc"): TNode[]

Type parameters:#

Name
TNode

Parameters:#

NameTypeDefault value
listTNode[]-
cb(node: TNode) => number | string-
order"asc" | "desc"'asc'

Returns: TNode[]

Defined in: react/src/common.ts:550

Defined in: react/src/query/usePaginatedQuery.ts:27


uniqBy#

uniqBy: <TNode>(list: TNode[], cb?: (node: TNode) => unknown) => TNode[]

Type declaration:#

▸ <TNode>(list: TNode[], cb?: (node: TNode) => unknown): TNode[]

Type parameters:#

Name
TNode

Parameters:#

NameType
listTNode[]
cb?(node: TNode) => unknown

Returns: TNode[]

Defined in: react/src/common.ts:533

Defined in: react/src/query/usePaginatedQuery.ts:26

Last updated on by Sam Denty