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

Type not found for currency-symbol-map/map #93

Open
apoutchika opened this issue Oct 7, 2023 · 0 comments
Open

Type not found for currency-symbol-map/map #93

apoutchika opened this issue Oct 7, 2023 · 0 comments

Comments

@apoutchika
Copy link

Hi,

When importing all currency symbols:

import currencyToSymbolMap from 'currency-symbol-map/map'

I have a type error, module file declaration 'currency-symbol-map/map' not found.

I added this declaration in my project:

type CurrencySymbolMapMap = {
  [index: string]: string;
};
declare module 'currency-symbol-map/map' {
  import data from 'currency-symbol-map/map';

  export default data as CurrencySymbolMapMap;
}

It seems to work, but is it possible to include an "official" declaration directly in the module?

Thank you for your fantastic module :)

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

1 participant