StatamicApiTreeNode

A single node in a tree structure from Statamic API (navigation or structured collection).

Type Definition

Contains the page data, depth level, and nested children.

type 
StatamicApiTreeNode
<
DataType
extends
Record
<string, any> =
StatamicApiEntryDefaultFields
> = {
page
:
DataType
;
depth
: number;
children
:
StatamicApiTreeNode
<
DataType
>[];
};