argyleink / argyleink/scrollyfills
Typescript import issue: no declaration file for module
- Dominant language
- JavaScript
- Stars
- 124
- Forks
- 14
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by inspecting how the scrollyfills module is published and where its package entry point is declared. Add the requested declaration coverage, then verify that a TypeScript consumer can import scrollyfills without the missing-declaration error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- web-dev
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100