disqus / disqus-react

A React component for Disqus
MIT License
369 stars 46 forks source link

TS Error: Statements not allowed in ambient contexts #82

Closed bsgreenb closed 3 years ago

bsgreenb commented 4 years ago

Describe the bug

../node_modules/disqus-react/types/index.d.ts:7:2 - error TS1036: Statements are not allowed in ambient contexts. 7 };

To Reproduce

Import disqus-react on TS, unless there's some special integration bug going on.

Expected behavior

Should not have type error.

Screenshots

image

Specifications:

tterb commented 4 years ago

@bsgreenb Thanks for reporting the issue! Feel free to submit a PR if you have a solution to the problem, otherwise, I can probably look into it over the weekend.

tterb commented 3 years ago

This should be resolved by #105