topick icon indicating copy to clipboard operation
topick copied to clipboard

Type not found for currency-symbol-map/map

Open apoutchika opened this issue 1 year ago • 0 comments

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

apoutchika avatar Oct 07 '23 18:10 apoutchika