Skip to content

Tree ​

Since 1.4.0

Tree type (alias for TreeNode).

Signature ​

typescript
type Tree<T> = TreeNode<T>

Parameters ​

ParameterDescription
TValue type

Description ​

Represents a tree structure with a value and optional children.

Examples ​

Basic Usage ​

typescript
import type { Tree } from 'uni-types'

type StringTree = Tree<string>
// TreeNode<string>

Released under the MIT License.