Skip to content

TSL: Make ArrayNode Generic#2145

Merged
Methuselah96 merged 2 commits intothree-types:masterfrom
thelazylamaGit:ArrayNode-Generic
May 9, 2026
Merged

TSL: Make ArrayNode Generic#2145
Methuselah96 merged 2 commits intothree-types:masterfrom
thelazylamaGit:ArrayNode-Generic

Conversation

@thelazylamaGit
Copy link
Copy Markdown
Contributor

ArrayNode was returning an untyped Node[] so wasn't working with the new Node<TNodeType> system. This PR makes ArrayNode generic so you can use it with the correct type such as ArrayNode<'vec3'>.

Likewise, makes .element(i) return the correctly typed ArrayElementNode<TNodeType>.

Copy link
Copy Markdown
Contributor

@Methuselah96 Methuselah96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I cleaned up some of the updates, let me know if I broke anything.

@Methuselah96 Methuselah96 merged commit f971ddc into three-types:master May 9, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants