Skip to content

Commit 66e61bb

Browse files
obiotclaude
andauthored
Re-enable exactOptionalPropertyTypes (#1271)
Upstream type issues in vite, vitest, and @types/node are now resolved. The only remaining error was in gamepad.ts where ButtonBinding.threshold needed `| undefined` added to the optional property type. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 66eda30 commit 66e61bb

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

packages/melonjs/src/input/gamepad.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ interface ButtonBinding {
2020
keyCode: number;
2121
value: number;
2222
pressed: boolean;
23-
threshold?: number;
23+
threshold?: number | undefined;
2424
}
2525

2626
interface GamepadBindings {

packages/tsconfig/base.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"strictPropertyInitialization": false,
1818
"allowImportingTsExtensions": true,
1919
"noUnusedParameters": true,
20-
"noImplicitOverride": true
20+
"noImplicitOverride": true,
21+
"exactOptionalPropertyTypes": true
2122
}
2223
}

0 commit comments

Comments
 (0)