cheminfo / openchemlib-js

JavaScript port of OpenChemLib
https://cheminfo.github.io/openchemlib-js/index.html
BSD 3-Clause "New" or "Revised" License
71 stars 21 forks source link

Should we not add types in package.json ? #126

Closed lpatiny closed 2 years ago

lpatiny commented 2 years ago

@targos

Should we not in package.json specify to file in which typescript will find the type definition ?

"types": "./types.d.ts",

that points to

https://github.com/cheminfo/openchemlib-js/blob/main/types.d.ts

targos commented 2 years ago

No, because "main" is set to "core.js" and there is a file named "core.d.ts" next to it.