ocean.js
ocean.js copied to clipboard
Add a type declaration file
If you try and use ocean.js from another typescript project in strict mode, you will get this error:
Could not find a declaration file for module '@oceanprotocol/lib'. '/home/jamie/Desktop/ocean/vscode-extension/node_modules/@oceanprotocol/lib/dist/lib.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/oceanprotocol__lib` if it exists or add a new declaration (.d.ts) file containing `declare module '@oceanprotocol/lib';`ts(7016)
We don't have a type declaration file so there there is no easy way round this for developers.