Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Fixed Tree data structure definition #1335

Closed
wants to merge 1 commit into from
Closed

Fixed Tree data structure definition #1335

wants to merge 1 commit into from

Conversation

juanigaray
Copy link

@juanigaray juanigaray commented Jul 17, 2020

The Tree type defines a node of a tree which must have two Tree chidren. This makes it impossible for there to be leaf nodes. This commit makes the Tree type definition realistic, making both subtrees optional.

Fixes #1339

The Tree type defines a node of a tree which must have two Tree chidren. This makes it impossible for there to be leaf nodes. This commit makes the Tree type definition realistic, making both subtrees optional.
@orta
Copy link
Contributor

orta commented Aug 1, 2020

Thanks! Added this to the new site in microsoft/TypeScript-Website#832

@orta orta closed this Aug 1, 2020
@juanigaray juanigaray deleted the patch-1 branch August 1, 2020 22:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect tree node definition in pages/Advanced Types.md
2 participants