From f1827731ed52e017b4208496317b82e5c7867425 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Wed, 14 Jan 2026 19:11:01 +0700 Subject: [PATCH] fix: resolve type errors for CI deployment --- packages/app/react-native-web.d.ts | 7 +++++++ packages/app/src/hooks/use-audio-player.native.ts | 4 ++-- packages/app/tsconfig.json | 3 ++- 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 packages/app/react-native-web.d.ts diff --git a/packages/app/react-native-web.d.ts b/packages/app/react-native-web.d.ts new file mode 100644 index 000000000..9cc000e8a --- /dev/null +++ b/packages/app/react-native-web.d.ts @@ -0,0 +1,7 @@ +import "react-native"; + +declare module "react-native" { + interface PressableStateCallbackType { + hovered?: boolean; + } +} diff --git a/packages/app/src/hooks/use-audio-player.native.ts b/packages/app/src/hooks/use-audio-player.native.ts index 5775cd604..642d212ba 100644 --- a/packages/app/src/hooks/use-audio-player.native.ts +++ b/packages/app/src/hooks/use-audio-player.native.ts @@ -56,8 +56,8 @@ export function useAudioPlayer(options?: AudioPlayerOptions) { const queueRef = useRef([]); const suppressedQueueRef = useRef([]); const isProcessingQueueRef = useRef(false); - const playbackTimeoutRef = useRef(null); - const checkIntervalRef = useRef(null); + const playbackTimeoutRef = useRef | null>(null); + const checkIntervalRef = useRef | null>(null); async function play(audioData: Blob): Promise { return new Promise((resolve, reject) => { diff --git a/packages/app/tsconfig.json b/packages/app/tsconfig.json index 2bef2745c..39940107a 100644 --- a/packages/app/tsconfig.json +++ b/packages/app/tsconfig.json @@ -12,6 +12,7 @@ "**/*.tsx", ".expo/types/**/*.ts", "expo-env.d.ts", - "nativewind-env.d.ts" + "nativewind-env.d.ts", + "react-native-web.d.ts" ] }