You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can either the typing of filterNode be updated to indicate that it is called with three arguments or the usage be updated to only call it with the one expected node argument?
Thank you!
The text was updated successfully, but these errors were encountered:
Uh oh! @sydneyjodon-wk, the image you shared is missing helpful alt text. Check your issue body.
Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.
Uh oh!
There was an error while loading. Please reload this page.
Relevant code or config:
What you did / what happened
The
filterNode
arg inprettyDOM
is typed as having one argument:so I was expecting it to be called with one argument, but it was called with three.
Reproduction:
https://codesandbox.io/p/sandbox/wizardly-shirley-yp96n8?file=%2Fsrc%2F__tests__%2Findex.test.js%3A8%2C27
See in the console that there are three args passed to

filterNode
:Problem description:
I think it's being called with three arguments because
filterNode
is being passed intofilter
andfilter
has three args:element
,index
, andarray
.Suggested solution:
Can either the typing of
filterNode
be updated to indicate that it is called with three arguments or the usage be updated to only call it with the one expectednode
argument?Thank you!
The text was updated successfully, but these errors were encountered: