Skip to content

Commit 446b070

Browse files
committed
Also type elt on p5.Graphics
1 parent 3f6b8ef commit 446b070

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

utils/patch.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ export function applyPatches() {
6666
`
6767
);
6868

69+
replace(
70+
'p5.d.ts',
71+
'class __Graphics extends p5.Element {',
72+
`class __Graphics extends p5.Element {
73+
elt: HTMLCanvasElement;
74+
`,
75+
);
76+
6977
for (const [path, data] of Object.entries(patched)) {
7078
try {
7179
console.log(`Patched ${path}`);

0 commit comments

Comments
 (0)