[]previous and next page

SubmissionView

The read view of a submission that the hooks return: plain values, read reactively when a component reads them.

The read view of a submission that the hooks return: plain values, read reactively when a component reads them.

Import#

ts
import type { SubmissionView } from "@shadow-js/dusk/client";

Signature#

ts
interface SubmissionView<Input = unknown, Output = unknown> {
  readonly id: string | undefined;
  readonly status: SubmissionStatus;
  readonly pending: boolean;
  readonly input: Input | undefined;
  readonly result: Output | undefined;
  readonly failed: boolean;
  readonly error: unknown;
  clear(): void;
  retry(): Promise<void>;
}

Members#

Name Type Description
Input Input = unknown
Output Output = unknown
id readonly id: string | undefined
status readonly status: SubmissionStatus
pending readonly pending: boolean
input readonly input: Input | undefined
result readonly result: Output | undefined
failed readonly failed: boolean
error readonly error: unknown
clear clear(): void
retry retry(): Promise<void>