Skip to content

feat(fluent-dom): Add more precision to the Localization and DOMLocalization classes constructor argument types - #672

Open
julienw wants to merge 1 commit into
projectfluent:mainfrom
julienw:refine-type
Open

julienw wants to merge 1 commit into
projectfluent:mainfrom
julienw:refine-type

Conversation

@julienw

@julienw julienw commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

I noticed the constructor was using a Function as the type, which isn't super precise and reduce type safety.
So in this patch I suggest we make this a bit stricter. I also added types to other methods in the process, and made and formatMessages protected instead of private (it's used by DOMLocalization).

@julienw julienw changed the title feat(fluent-dom): Add more precision to the Localization class constructor argument types feat(fluent-dom): Add more precision to the Localization and DOMLocalization classes constructor argument types Sep 15, 2026

This branch has not been deployed

No deployments
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.

1 participant