Skip to main content

Function: isStateSyncStatusSummary()

isStateSyncStatusSummary(candidate: unknown): candidate is { lastSyncAt?: number | null; siteCount: number; source: "cache" | "database" | "frontend"; synchronized: boolean }

Defined in: shared/types/stateSync.ts:264

Type guard to check if a value is a valid StateSyncStatusSummary.

Parametersโ€‹

candidateโ€‹

unknown

Value to validate.

Returnsโ€‹

candidate is { lastSyncAt?: number | null; siteCount: number; source: "cache" | "database" | "frontend"; synchronized: boolean }

true when the value conforms to the schema.