react-localize-redux
react-localize-redux copied to clipboard
LocalizeContext not declared in types declaration despite being exported
Do you want to request a feature or report a bug?
Report a bug & offer fix
What is the current behavior?
Go to: https://codesandbox.io/s/stupefied-bhaskara-fsyir
- Open App.tsx
- Notice typescript error stating LocalizeContext is not exported from module
What is the expected behavior?
- LocalizeContext is exported from the module but not declared in the type definitions. This would involve adding LocalizeContext as an exported member from src/index.d.ts
Which versions of react
and react-localize-redux
are you using?
- [email protected]
- react-localize-redux@^3.5.3
Happy to add and open a PR although I wanted to check first given that work is ongoing with v4 and you mentioned you're swamped. If you'll have a chance to release a patch I'll open a PR with the change?
+1 on this since we want to build a hook helper and need to access the context in a TypeScript environment (ideally without a @ts-ignore
statement)