Skip to content

Commit 40a74a1

Browse files
committed
add failing test for #8231 (mouseButton type)
1 parent 888a9d0 commit 40a74a1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/types/basic.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,8 @@ function draw() {
7171
rotateY(millis() * 0.0001)
7272
model(geom)
7373
}
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

Comments
 (0)