本页还没有译文
本页 4 段还没译成Deutsch,下面显示的是英文原文。CleanupFn
还没翻译译自英文(tanstack.com)本页 4 段都还没译
type CleanupFn = () => void | () => Promise<void>;Defined in: packages/db/src/types.ts:412
Ends one sync run and releases its adapter-owned resources.
Collection cleanup waits for a returned promise before publishing the
cleaned-up status or admitting a replacement sync run.
TypeScript permits Promise-returning functions where () => void is
expected, so the Promise branch must be explicit here to preserve and await
it. Keeping the callable types separate also preserves contextual-void
callbacks that return an incidental value.
AI 翻译查看英文原文