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
I'm attempting to convert a working JavaScript project using Masonry, ImagesLoaded, and InfiniteScroll over to TypeScript. The types for Masonry are available using "npm install --save @types/masonry-layout". After loading the types, many errors went away, but I'm still getting type errors for several places that appear to be working, correct code taken right from your sample code. Here are some examples:
I'm attempting to convert a working JavaScript project using Masonry, ImagesLoaded, and InfiniteScroll over to TypeScript. The types for Masonry are available using "npm install --save @types/masonry-layout". After loading the types, many errors went away, but I'm still getting type errors for several places that appear to be working, correct code taken right from your sample code. Here are some examples:
$grid.masonry("destroy"); // https://masonry.desandro.com/methods.html#destroy
$grid.masonry( 'remove', this ); // https://masonry.desandro.com/methods.html#remove
Basically any construct with .masonry(string) is not accepted. Is there a shortcoming in the types files, or am I doing something wrong?
The text was updated successfully, but these errors were encountered: