Skip to main content

Interface: RestoreChange

Defined in: packages/core/src/application/use-cases/restore-change.ts:18

Recovers a drafted change back to changes/, appending a restored event.

The FsChangeRepository implementation moves the change directory from drafts/ back to changes/ when the manifest is saved with isDrafted === false.

Methods

execute()

execute(input): Promise<Change>

Defined in: packages/core/src/application/use-cases/restore-change.ts:40

Executes the use case.

Parameters

input

RestoreChangeInput

Restore parameters

Returns

Promise<Change>

The updated change

Throws

If no change with the given name exists