Update type definitions and function signatures in migrate-scene-document.ts

This commit is contained in:
2026-04-11 12:38:39 +02:00
parent 203afa9079
commit 7dbb287dd6

View File

@@ -39,7 +39,9 @@ import {
isPlayerStartGamepadBinding,
isPlayerStartKeyboardBindingCode,
isPlayerStartNavigationMode,
type EntityInstance
type EntityInstance,
type PlayerStartGamepadBinding,
type PlayerStartGamepadCameraLookBinding
} from "../entities/entity-instances";
import {
createPlayAnimationInteractionLink,
@@ -934,9 +936,9 @@ function readPlayerStartKeyboardBindingCode(
function readPlayerStartGamepadBinding(
value: unknown,
label: string,
fallback: (typeof DEFAULT_PLAYER_START_GAMEPAD_BINDINGS)[keyof typeof DEFAULT_PLAYER_START_GAMEPAD_BINDINGS]
) {
return readOptionalAllowedValue(
fallback: PlayerStartGamepadBinding
): PlayerStartGamepadBinding {
return readOptionalAllowedValue<PlayerStartGamepadBinding>(
value,
label,
fallback,
@@ -948,9 +950,9 @@ function readPlayerStartGamepadBinding(
function readPlayerStartGamepadCameraLookBinding(
value: unknown,
label: string,
fallback: (typeof DEFAULT_PLAYER_START_GAMEPAD_CAMERA_LOOK_BINDINGS)[number]
) {
return readOptionalAllowedValue(
fallback: PlayerStartGamepadCameraLookBinding
): PlayerStartGamepadCameraLookBinding {
return readOptionalAllowedValue<PlayerStartGamepadCameraLookBinding>(
value,
label,
fallback,