Skip to content

Remove nodeListOf and htmlCollectionOf#220

Merged
nojaf merged 2 commits intorescript-lang:mainfrom
Freddy03h:nodelistof-htmlcollectionof
Mar 17, 2026
Merged

Remove nodeListOf and htmlCollectionOf#220
nojaf merged 2 commits intorescript-lang:mainfrom
Freddy03h:nodelistof-htmlcollectionof

Conversation

@Freddy03h
Copy link
Contributor

In most cases where nodeList is used, it could be nodeListOf<node> or nodeListOf<element>.
And where htmlCollection is used, it could be htmlCollectionOf<element>.

So I think we could remove nodeListOf and htmlCollectionOf, and instead have nodeList and htmlCollection take a type parameter.

@nojaf
Copy link
Member

nojaf commented Mar 17, 2026

Thanks!

@nojaf nojaf merged commit cf878fa into rescript-lang:main Mar 17, 2026
2 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