lancer internet
lancer internet

Reputation: 33

Integrating Kekule.js into React App Build with typescript

Dear community!

So I have set-up a react app in which helps people related with chemistry publish their works, and for that I have found a library called Kekule.js Here it is

As I said I use typescript which now demands that I define types for the library I use, but the library is not in the NPM, neither can I find @types/kekule.js or something similar.

As there are really a whole lot of functions in the library I wonder if anyone can help me with getting a fast way of defining types for typscript.

Upvotes: 2

Views: 275

Answers (1)

Davit Gyulnazaryan
Davit Gyulnazaryan

Reputation: 811

Kekule.js indeed can't be found on NPM, at least I couldn't

Assuming, You use react, the only way would be to create a file, if not exists already and declare Your types there.

in index.d.ts (d stands for 'definitions') add declare module "your-module-without-types"

Also see Typescript Modules

Upvotes: 1

Related Questions