fix: resolve type errors for CI deployment

This commit is contained in:
Mohamed Boudra
2026-01-14 19:11:01 +07:00
parent b756bedbe7
commit f1827731ed
3 changed files with 11 additions and 3 deletions

7
packages/app/react-native-web.d.ts vendored Normal file
View File

@@ -0,0 +1,7 @@
import "react-native";
declare module "react-native" {
interface PressableStateCallbackType {
hovered?: boolean;
}
}

View File

@@ -56,8 +56,8 @@ export function useAudioPlayer(options?: AudioPlayerOptions) {
const queueRef = useRef<QueuedAudio[]>([]);
const suppressedQueueRef = useRef<QueuedAudio[]>([]);
const isProcessingQueueRef = useRef(false);
const playbackTimeoutRef = useRef<number | null>(null);
const checkIntervalRef = useRef<number | null>(null);
const playbackTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
const checkIntervalRef = useRef<ReturnType<typeof setInterval> | null>(null);
async function play(audioData: Blob): Promise<number> {
return new Promise((resolve, reject) => {

View File

@@ -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"
]
}