create react library typescript npm code example
Example: create react app with typescript declare types for libraries in npm
for create-react-app put your types in src/global.d.ts
for create-react-app put your types in src/global.d.ts