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 888a9d0 commit 40a74a1Copy full SHA for 40a74a1
test/types/basic.ts
@@ -71,3 +71,8 @@ function draw() {
71
rotateY(millis() * 0.0001)
72
model(geom)
73
}
74
+
75
+function mousePressed(){
76
+ //only type-checking the relevant properties exist on the mouseButton object type.
77
+ const whatever = mouseButton.left || mouseButton.center || mouseButton.right;
78
+}
0 commit comments