We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f6b8ef commit 446b070Copy full SHA for 446b070
utils/patch.mjs
@@ -66,6 +66,14 @@ export function applyPatches() {
66
`
67
);
68
69
+ replace(
70
+ 'p5.d.ts',
71
+ 'class __Graphics extends p5.Element {',
72
+ `class __Graphics extends p5.Element {
73
+ elt: HTMLCanvasElement;
74
+ `,
75
+ );
76
+
77
for (const [path, data] of Object.entries(patched)) {
78
try {
79
console.log(`Patched ${path}`);
0 commit comments