Browse documentation

OfflineOperation

Type. Persisted offline queue operation.

Table of contents

Category

Type

Type import

ts
import type { OfflineOperation } from "valyrian.js/offline";

Public signature

ts
type OfflineOperation = { id: string; type: string; payload?: unknown; retries: number; createdAt: number; lastError?: string; };

Type usage

OfflineOperation is the persisted queue record. enqueue(...) generates id, retries and createdAt.