Problem with JSDoc createGraphics() annotation in my sketch

It doesn’t make much sense documenting 3rd-party libraries you import to your code.

For that we should grab their existing type definition files:

But in order to use such files you’ll probably need to switch to TypeScript:

Take a look at my previous posts w/ TS sketch examples: