transition(
args: {lix:Lix;to:Pick<LixCommit,"id">;version?:Pick<LixVersion,"id">; }):Promise<{author_account_ids?:null|string[];change_ids?:null|string[];change_set_id:string;id:LixGenerated<string>;meta_change_ids?:null|string[];parent_commit_ids?:null|string[]; }>
Transitions a version to the target commit through the engine router.
await transition({ lix, to: checkpoint })| Parameter | Type | Description |
|---|---|---|
args | { lix: Lix; to: Pick<LixCommit, "id">; version?: Pick<LixVersion, "id">; } | - |
args.lix | Lix | Lix instance that exposes lix.call. |
args.to | Pick<LixCommit, "id"> | Target commit to transition towards. |
args.version? | Pick<LixVersion, "id"> | Optional version override; defaults to the active version. |
Promise<{ author_account_ids?: null | string[]; change_ids?: null | string[]; change_set_id: string; id: LixGenerated<string>; meta_change_ids?: null | string[]; parent_commit_ids?: null | string[]; }>