I am using react and Next.js, I am following this guide https://github.com/observablehq/plot with the goal to render/visualize some data from a heroku postgres DB. I used npm install @observablehq/plot.
import * as Plot from '@observablehq/plot'
This import line is raising a ts7016 error:
Could not find a declaration file for module '@observablehq/plot'. '/Users/alejandrozapien/bexar-dash/node_modules/@observablehq/plot/src/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/observablehq__plot` if it exists or add a new declaration (.d.ts) file containing `declare module '@observablehq/plot';
I am new to learning Typescript and creating declaration files. How should I go about resolving this error properly? I read I should create a global.d.ts file but I am unsure of where to place that file or how to structure it