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
A quick fix will be removing Element[] and adding NodeListOf<Element> at the constructor definition but it would be great if the constructor actually accepts Element[].
The text was updated successfully, but these errors were encountered:
The types for the vanilla version have been removed with the 6.0.0., React version has its own types.
Will add them back with the fix of the issue you described.
https://github.com/geosigno/simpleParallax.js/blob/master/index.d.ts#L15
Although the type definition indicates the constructor accepts
Element[]
, when we implement actual code, runtime error occurs.https://stackblitz.com/edit/typescript-uum318?file=index.ts
Besides, the document tells the constructor accepts a return value of
document.querySelectorAll
but the type is actuallyNodeListOf<Element>
and type error occurs.https://stackblitz.com/edit/typescript-uyqfmc?file=index.ts
A quick fix will be removing
Element[]
and addingNodeListOf<Element>
at the constructor definition but it would be great if the constructor actually acceptsElement[]
.The text was updated successfully, but these errors were encountered: