react-localize-redux icon indicating copy to clipboard operation
react-localize-redux copied to clipboard

LocalizeContext not declared in types declaration despite being exported

Open adamdharrington opened this issue 5 years ago • 2 comments

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?


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?

adamdharrington avatar Jan 21 '20 17:01 adamdharrington

+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)

pedily avatar Jul 19 '20 16:07 pedily