Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix: type export missing

Marc Seitz449ee4f5e8c2
diff --git a/lib/utils/use-progress-status.ts b/lib/utils/use-progress-status.ts
index 9aa09b72..36def71d 100644
--- a/lib/utils/use-progress-status.ts
+++ b/lib/utils/use-progress-status.ts
@@ -1,10 +1,25 @@
"use client";
-import { type RunStatus } from "@trigger.dev/core";
import { useRealtimeRunsWithTag } from "@trigger.dev/react-hooks";
import { parseStatus } from "@/lib/utils/generate-trigger-status";
+// INFO: This is the same as the RunStatus type in @trigger.dev/core/v3. Wait until it's exported from the package.
+type RunStatus =
+ | "PENDING_VERSION"
+ | "QUEUED"
+ | "DEQUEUED"
+ | "EXECUTING"
+ | "WAITING"
+ | "COMPLETED"
+ | "CANCELED"
+ | "FAILED"
+ | "CRASHED"
+ | "SYSTEM_FAILURE"
+ | "DELAYED"
+ | "EXPIRED"
+ | "TIMED_OUT";
+
interface IDocumentProgressStatus {
state: RunStatus;
progress: number;