Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Refactor type casting for currentRecording data

Richie McIlroy44a5348e5b56
diff --git a/apps/desktop/src/routes/in-progress-recording.tsx b/apps/desktop/src/routes/in-progress-recording.tsx
index c82e2b748..b4cbd007a 100644
--- a/apps/desktop/src/routes/in-progress-recording.tsx
+++ b/apps/desktop/src/routes/in-progress-recording.tsx
@@ -31,6 +31,7 @@ import {
import { handleRecordingResult } from "~/utils/recording";
import type {
CameraInfo,
+ CurrentRecording,
DeviceOrModelID,
RecordingInputKind,
} from "~/utils/tauri";
@@ -191,7 +192,7 @@ export default function () {
createEffect(() => {
if (state().variant === "initializing") {
- const recording = currentRecording.data as any;
+ const recording = currentRecording.data as CurrentRecording;
if (recording?.status === "recording") {
setDisconnectedInputs({ microphone: false, camera: false });
setRecordingFailure(null);