You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When accessing nested properties on the re-exported p5 type, it throws a type error that p5 is not a namespace.
Potential fix
In types.d.ts:
importtypep5from'p5';exporttype{defaultasp5}from'p5';/** * A p5 instance, re-exported from `@types/p5`. *//** * A closure representing a p5 sketch in [Instance Mode](/~https://github.com/processing/p5.js/wiki/Global-and-instance-mode). * * Within the closure you can set optional `preload()`, `setup()`, and/or `draw()` properties on the given p5 instance. */exporttypeSketch=(sketch: p5)=>void;
The text was updated successfully, but these errors were encountered:
Describe the bug
When accessing nested properties on the re-exported
p5
type, it throws a type error thatp5
is not a namespace.Potential fix
In
types.d.ts
:The text was updated successfully, but these errors were encountered: