Skip to main content

Interface: NestConfig<T>

Defined in: collection/types.ts:131

Configuration for nested grouping operations.

Example

const config: NestConfig<Comment> = {
by: ['userId', 'postId'],
createEmpty: () => []
}

Type Parameters

T

T

The type of items being grouped

Properties

by

readonly by: readonly (keyof T | (item) => string | number)[]

Defined in: collection/types.ts:132


createEmpty()?

readonly optional createEmpty: () => unknown

Defined in: collection/types.ts:133

Returns

unknown