SyncConfig
Import
import { SyncConfig } from "@hyper-fetch/db"
Source
Package
Preview
type SyncConfig = {
byKey?: (key: RowKey) => ListenerPatch;
changes?: (event: unknown) => { delete: readonly RowKey[]; refetch?: readonly RowKey[]; upsert: readonly unknown[] };
incomplete?: refetch;
key?: (message: unknown) => RowKey;
listener: ListenerInstance;
notation?: (conditions: readonly ComparisonNode[]) => ListenerPatch;
resumes?: boolean;
row?: (message: unknown) => unknown;
type: SyncType | changes;
where?: Record<string, { eq: (value: unknown) => ListenerPatch }>;
}
Structure
SyncConfig
| Name | Type | Description |
|---|---|---|
| incomplete | | |
| listener | | |
| resumes | | |
| type | |
|
| where | | |
| byKey | | |
| changes | | |
| key | | |
| notation | | Covers every subset by turning its sent conditions into listener params, as adapter presets do |
| row | |
