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 not an expert in JSDoc, so I can't say whether there's a downside to this approach (other than the increased verbosity and dependency on Eleventy's internals), but it's what I'm using now. Absent a better suggestion, the Eleventy 3.0 docs and migration guide will probably need to mention this necessary change to preserve the previously-documented functionality.
Operating system
macOS Sonoma 14.2
Eleventy
3.0.0-alpha.2
Describe the bug
The 11ty docs recommend this as the way to get TypeScript-powered autocomplete on the
eleventyConfig
object:After converting my Eleventy project to ESM per the 3.0 alpha announcement, I found that this autocomplete was no longer working. Updating the type import to reference the actual file path fixes the issue for me:
I'm not an expert in JSDoc, so I can't say whether there's a downside to this approach (other than the increased verbosity and dependency on Eleventy's internals), but it's what I'm using now. Absent a better suggestion, the Eleventy 3.0 docs and migration guide will probably need to mention this necessary change to preserve the previously-documented functionality.
Reproduction steps
npm install
eleventyConfig
parameter on line 9. Note that Visual Studio Code annotates it as having typeany
.Expected behavior
The type should be annotated as
UserConfig
.Reproduction URL
https://github.com/sentience/kevinyank.com/tree/demo-esm-autocomplete-broken
Screenshots
No response
The text was updated successfully, but these errors were encountered: