pub fn lifecycle_failure(error: WorktreeCopyError) -> WorktreeCopyErrorExpand description
What: The lifecycle’s wording for a raw failure that reached the top of a copy. Why: The user sees the generic sentence once, with the underlying cause after it.
In TS you’d write (pseudocode):
function asWorktreeCopyError(error: unknown): WorktreeCopyError;