FinallyClause
A finally clause of a try statement.
import { FinallyClause } from "@alloy-js/typescript";
<FinallyClause > {children}</FinallyClause>import { FinallyClause } from "@alloy-js/typescript/stc";
FinallyClause({ }).children(children)| children | Children |
Example
Section titled “Example”<TryStatement>
// risky operation
</TryStatement>
<FinallyClause>
// cleanup
</FinallyClause>
renders to
try {
// risky operation
} finally {
// cleanup
}