tterb / gatsby-plugin-disqus

:speech_balloon: A plugin for adding Disqus comments to GatsbyJS
https://brettstevenson.io/gatsby-plugin-disqus
MIT License
45 stars 5 forks source link

TypeScript Support #34

Closed joshmedeski closed 3 years ago

joshmedeski commented 3 years ago

Is your feature request related to a problem? Please describe. I'm using TypeScript and get the following warning when using the react component

[tsserver 7016] [I] Could not find a declaration file for module 'gatsby-plugin-disqus'. >'../node_modules/gatsby-plugin-disqus/index.js' implicitly >has an 'any' type. Try npm i --save-dev @types/gatsby-plugin-disqus if it exists or add a new declaration (.d.ts) file containing declare >module 'gatsby-plugin-disqus';

Describe the solution you'd like A Typescript definition file should be added.

Describe alternatives you've considered I can ignore this error, but adding proper TypeScript support will prevent bugs and add autocomplete support.

Additional context I'm happy to help write the definition file, I'm starting here to see if you've already created TypeScript support or can offer support in building out this feature.