I'm trying to tweak this module called react-add-to-calendar to support onClick
events when clicking the dropdown items since the creator of the library seems to be not maintaining it anymore. I've moved the ReactAddToCalendar.js
file over to my project and require it like this:
import AddToCalendar from 'apps/bookings/components/ReactAddToCalendar'
And also have a ReactAddToCalendar.d.ts
that looks like this according to this answer:
declare module "ReactAddToCalendar";
But now I'm getting this error:
File '.../{project_name}/app/javascript/apps/bookings/components/ReactAddToCalendar.d.ts' is not a module.
I've tried looking everywhere on how to get over this but I can't find anything.