braces function
Lines of a braced block.
import { braces } from '@dioramajs/diorama/vite'An empty one is {} on the opening line, as Biome and Prettier print it, so formatting a generated file for an empty folder leaves it as written.
function braces(open: string, rows: readonly string[], close: string): string[]Parameters
| Name | Type | Description |
|---|---|---|
open | string | |
rows | readonly string[] | |
close | string |
Defined in packages/diorama/src/vite.ts.