Skip to main content

Interface: DiscardChange

Defined in: packages/core/src/application/use-cases/discard-change.ts:21

Permanently abandons a change, appending a discarded event to its history.

The FsChangeRepository implementation moves the change directory to discarded/ when the manifest is saved with a discarded terminal event.

Methods

execute()

execute(input): Promise<Change>

Defined in: packages/core/src/application/use-cases/discard-change.ts:43

Executes the use case.

Parameters

input

DiscardChangeInput

Discard parameters

Returns

Promise<Change>

The updated change

Throws

If no change with the given name exists