Skip to content

UpdateOptions

Defined in: src/draft.ts:44

Options for StorageRoot.create and OcflObject.update.

readonly optional signal?: AbortSignal

Defined in: src/draft.ts:54

Cancels the create or update when aborted: draft operations started after that reject with its reason, and the draft is discarded once the callback settles. It is checked one last time just before the commit begins, and ignored after that.

await object.update(details, (draft) => draft.import(dir), { signal: request.signal });