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
View File
@@ -0,0 +1,7 @@
import "react-native";
declare module "react-native" {
interface PressableStateCallbackType {
hovered?: boolean;
}
}
@@ -56,8 +56,8 @@ export function useAudioPlayer(options?: AudioPlayerOptions) {
const queueRef = useRef<QueuedAudio[]>([]); const queueRef = useRef<QueuedAudio[]>([]);
const suppressedQueueRef = useRef<QueuedAudio[]>([]); const suppressedQueueRef = useRef<QueuedAudio[]>([]);
const isProcessingQueueRef = useRef(false); const isProcessingQueueRef = useRef(false);
const playbackTimeoutRef = useRef<number | null>(null); const playbackTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
const checkIntervalRef = useRef<number | null>(null); const checkIntervalRef = useRef<ReturnType<typeof setInterval> | null>(null);
async function play(audioData: Blob): Promise<number> { async function play(audioData: Blob): Promise<number> {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
+2 -1
View File
@@ -12,6 +12,7 @@
"**/*.tsx", "**/*.tsx",
".expo/types/**/*.ts", ".expo/types/**/*.ts",
"expo-env.d.ts", "expo-env.d.ts",
"nativewind-env.d.ts" "nativewind-env.d.ts",
"react-native-web.d.ts"
] ]
} }