I'm trying to use the library but it seems a decleration is missing
const { SimpleCalDAV } = require("simple-caldav");
const URI = "webcal://my-fake-url";
const icloud = new SimpleCalDAV(URI);
const main = async () => {
await dav.listEvents();
};
main();
Error
Could not find a declaration file for module 'simple-caldav'. '/xxx/greg/node_modules/simple-caldav/src/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/simple-caldav` if it exists or add a new declaration (.d.ts) file containing `declare module 'simple-caldav';`ts(7016)
I'm trying to use the library but it seems a decleration is missing
Error