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
readonlyby: readonly (keyofT| (item) =>string|number)[]
Defined in: collection/types.ts:132
createEmpty()?
readonlyoptionalcreateEmpty: () =>unknown
Defined in: collection/types.ts:133
Returns
unknown