타입 별칭: SyncOperation<TRow, TKey, TInsertInput>
type SyncOperation<TRow, TKey, TInsertInput> =
| {
data: TInsertInput | TInsertInput[];
type: "insert";
}
| {
data: Partial<TRow> | Partial<TRow>[];
type: "update";
}
| {
key: TKey | TKey[];
type: "delete";
}
| {
data: Partial<TRow> | Partial<TRow>[];
type: "upsert";
};
정의 위치: packages/query-db-collection/src/manual-sync.ts:24
타입 매개변수
TRow
TRow extends object
TKey
TKey extends string | number = string | number
TInsertInput
TInsertInput extends object = TRow