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

Define an actual interface for IntLocaleData #22

Closed
ranst91-u opened this issue Apr 1, 2020 · 1 comment
Closed

Define an actual interface for IntLocaleData #22

ranst91-u opened this issue Apr 1, 2020 · 1 comment

Comments

@ranst91-u
Copy link

The IntLocaleData TS interface looks like this:
interface IntlLocaleData {}

My suggestion is to define an actual interface for this.
Otherwise, when trying to grab a property of a specific locale object, every property I'll try to get, will hit a Property '...' does not exist on type 'LocaleData'

Otherwise, there is no way to work with the default export of the locale data with TS

@jamuhl
Copy link
Member

jamuhl commented Apr 1, 2020

Feel free to provide a PR

@jamuhl jamuhl closed this as completed Feb 10, 2021
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

No branches or pull requests

2 participants