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 trying to use the scrollend polyfill from TypeScript, and encountering this issue:
Could not find a declaration file for module 'scrollyfills'. '/path/to/module-name.js' implicitly has an 'any' type
For now, I am solving the issue by creating my own empty scrollyfills.d.ts in my project, which just types everything as 'any' by default and gets the TypeScript compiler to stop complaining. Ideally, we could create a proper type declaration file, but even just adding an empty one to the repo would avoid this error when trying to use the module from TypeScript code.
The text was updated successfully, but these errors were encountered:
I'm trying to use the scrollend polyfill from TypeScript, and encountering this issue:
Could not find a declaration file for module 'scrollyfills'. '/path/to/module-name.js' implicitly has an 'any' type
For now, I am solving the issue by creating my own empty scrollyfills.d.ts in my project, which just types everything as 'any' by default and gets the TypeScript compiler to stop complaining. Ideally, we could create a proper type declaration file, but even just adding an empty one to the repo would avoid this error when trying to use the module from TypeScript code.
The text was updated successfully, but these errors were encountered: