adam-26 / react-script-tag

A react <script> tag that supports universal rendering
MIT License
19 stars 6 forks source link

TypeScript support #23

Closed rgb2hsl closed 3 years ago

rgb2hsl commented 3 years ago

There is no way to use this package in TypeScript project with strict mode. Type definitions are necessary.

Could not find a declaration file for module 'react-script-tag'. '/node_modules/react-script-tag/lib/index.js' implicitly has an 'any' type.<br/>Try `npm i --save-dev @types/react-script-tag` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-script-tag';`
adam-26 commented 3 years ago

I am no longer maintaining this repo. You can fork it and add type definitions if you need them.

close

rgb2hsl commented 3 years ago

Got it