Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace index.d.ts with jsdoc @typedef #3349

Merged
merged 1 commit into from
Jul 5, 2024
Merged

replace index.d.ts with jsdoc @typedef #3349

merged 1 commit into from
Jul 5, 2024

Conversation

mayank99
Copy link
Contributor

@mayank99 mayank99 commented Jul 5, 2024

This basically reverts the changes from #3291 (and #2091), in favor of the approach from #3060.

A new JSDoc @typedef comment ensures that UserConfig types are available (fixes #3097), and that everything exported from Eleventy.js has proper types (fixes #2935).

@zachleat
Copy link
Member

zachleat commented Jul 5, 2024

I’m on board with this but I do want a quick check from #3291’s author @chriskirknielsen—does this look okay?

@zachleat zachleat added this to the Eleventy 3.0.0 milestone Jul 5, 2024
@chriskirknielsen
Copy link
Contributor

All I did was restore somebody else's work, so I don't think I have a say — but this change does look easier as it locates it all in a single file (and I like using JSDoc syntax), so if it matters, I'm on board, too! 😄

@zachleat zachleat merged commit 9528b38 into 11ty:main Jul 5, 2024
@zachleat
Copy link
Member

zachleat commented Jul 5, 2024

Thank you! Shipping with v3.0.0-alpha.15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
typescript Type definitions and Typescript issues
Projects
None yet
3 participants