Fix typescript types in DOMLocalization by julienw · Pull Request #643 · projectfluent/fluent.js · GitHub
Skip to content

Fix typescript types in DOMLocalization#643

Merged
eemeli merged 1 commit into
projectfluent:mainfrom
julienw:fix-types-fluent-dom
Jul 18, 2025
Merged

Fix typescript types in DOMLocalization#643
eemeli merged 1 commit into
projectfluent:mainfrom
julienw:fix-types-fluent-dom

Conversation

@julienw

@julienw julienw commented Jul 18, 2025

Copy link
Copy Markdown
Contributor

I noticed some types were not good enough when I started checking the types in firefox' lit-utils file, for example in these lines: https://searchfox.org/mozilla-central/rev/a9e77c69ed8a2b408bbe64553316c7849ec3d267/toolkit/content/widgets/lit-utils.mjs#160,179

Indeed in Lit we're dealing with DocumentFragments more. This works fine in Fluent, only the types aren't correct.

@julienw

julienw commented Jul 18, 2025

Copy link
Copy Markdown
Contributor Author

@eemeli eemeli merged commit 8010db1 into projectfluent:main Jul 18, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants