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.
2 parents 618e4c8 + 5d4a964 commit 12b54c1Copy full SHA for 12b54c1
test/types/basic.ts
@@ -1,6 +1,5 @@
1
// Modified from https://openprocessing.org/sketch/2500100
2
-
3
-import '../../types/global'
+import p5 from '../../types/global'
4
5
p5.disableFriendlyErrors = true
6
utils/typescript.mjs
@@ -805,6 +805,7 @@ p5: P5;
805
});
806
807
globalDefinitions += '}\n\n';
808
+ globalDefinitions += 'export default p5;\n\n';
809
810
return { instanceDefinitions, globalDefinitions };
811
}
0 commit comments