Interface: FlattenConfig<T>
Defined in: collection/types.ts:203
Configuration for flatten operation.
Example
const config: FlattenConfig<FileNode> = {
getChildren: (node) => node.children,
maxDepth: 3,
includePath: true
}
Type Parameters
T
T
The type of tree nodes
Properties
getChildren()
readonlygetChildren: (node) => readonlyT[] |undefined
Defined in: collection/types.ts:204
Parameters
node
T
Returns
readonly T[] | undefined
includePath?
readonlyoptionalincludePath:boolean
Defined in: collection/types.ts:206
maxDepth?
readonlyoptionalmaxDepth:number
Defined in: collection/types.ts:205