ronkok / Temml

TeX-to-MathML conversion library in JavaScript
https://temml.org/
MIT License
162 stars 12 forks source link

TypeScript error TS1183 in temml.d.ts #56

Closed againey closed 10 months ago

againey commented 10 months ago

When converting my JS server to TS, I ran into the following error on line 44 of dist/temml.d.ts:

error TS1183: An implementation cannot be declared in ambient contexts.

Removing the curly brackets or replacing them with a semicolon appears to fix the problem. That makes sense to me, but my knowledge of TypeScript is very limited, thus I have no idea if there's more or different that should be done to address the problem.

ronkok commented 10 months ago

My knowledge of TypeScript is also paper thin. But I think you correct. That pair of braces should not be there. I've removed them in release v0.10.22.