kciter / react-barcode

A <Barcode/> component for use with React.
http://kciter.github.io/react-barcode/
ISC License
396 stars 72 forks source link

Add types to package.json #64

Closed PabloReszczynski closed 2 years ago

PabloReszczynski commented 2 years ago

Currently, when using this library from npm, typescript cannot get the types declartion in this repo because the types field is not set. This fixes this by adding the the required field.

JeffreyStevens commented 2 years ago

I had to add this to my types.d.ts to work around the issue:

declare module 'react-barcode';

dor1202 commented 2 years ago

@kciter Hi. Can you pulish the new merge to npm store?

kciter commented 2 years ago

@dor1202 1.4.2 published. https://www.npmjs.com/package/react-barcode