From f2820c5e1d0570d6c9b23fa6f767e5866a4b57d6 Mon Sep 17 00:00:00 2001 From: Arthur Darkstone Date: Thu, 14 Aug 2025 19:01:55 +0800 Subject: [PATCH] fix(useGamepad): correct type assertion for vibrationActuator --- packages/core/useGamepad/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/useGamepad/index.ts b/packages/core/useGamepad/index.ts index d5656d3bbd9..5b0d0e2e091 100644 --- a/packages/core/useGamepad/index.ts +++ b/packages/core/useGamepad/index.ts @@ -72,7 +72,7 @@ export function useGamepad(options: UseGamepadOptions = {}) { const stateFromGamepad = (gamepad: Gamepad) => { const hapticActuators = [] - const vibrationActuator = 'vibrationActuator' in gamepad ? (gamepad as any).vibrationActuator : null + const vibrationActuator = 'vibrationActuator' in gamepad ? (gamepad as Gamepad).vibrationActuator : null if (vibrationActuator) hapticActuators.push(vibrationActuator)