跳到主要内容

WorkingTreeDiscardOptions

type WorkingTreeDiscardOptions = WorkingTreeCredentials;

Defined in: packages/rxdb-plugin-working-tree/src/working-tree/discard-command.ts:49

一次 discard() 的入参(contracts/core-api.md §3)。

Remarks​

键集恰好是三个捕获位。多出来的任何一个字段,要么是选择范围(上面第 1 条的口子), 要么是 authorId / operationId——而 discard 不写 commit,给它作者与幂等键 等于暗示库里会留下一条「某人丢弃过什么」的记录,那条记录不存在。