react-flags icon indicating copy to clipboard operation
react-flags copied to clipboard

Add typescript compatibility (.d.ts)

Open DavAnaton opened this issue 3 years ago • 0 comments

Importing this module in a typescript project fails.

Could not find a declaration file for module 'react-flags'. '/project/node_modules/react-flags/lib/react-flags.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/react-flags` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-flags';`  TS7016

DavAnaton avatar Oct 03 '21 21:10 DavAnaton