Skip to content

FinallyClause

A finally clause of a try statement.

import { FinallyClause } from "@alloy-js/typescript";
<FinallyClause >
{children}
</FinallyClause>
childrenChildren
<TryStatement>
  // risky operation
</TryStatement>
<FinallyClause>
  // cleanup
</FinallyClause>

renders to

try {
  // risky operation
} finally {
  // cleanup
}