Skip to content

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

@apoutchika

Description

@apoutchika

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions