(
options?: { label?: string | undefined; collapsed?: boolean | undefined } | undefined
)
| 458 | * @since 2.0.0 |
| 459 | */ |
| 460 | export const group = ( |
| 461 | options?: { label?: string | undefined; collapsed?: boolean | undefined } | undefined |
| 462 | ): Effect.Effect<void, never, Scope> => |
| 463 | consoleWith((console) => |
| 464 | effect.acquireRelease( |
| 465 | effect.sync(() => { |
| 466 | if (options?.collapsed) { |
| 467 | console.groupCollapsed(options.label) |
| 468 | } else { |
| 469 | console.group(options?.label) |
| 470 | } |
| 471 | }), |
| 472 | () => |
| 473 | effect.sync(() => { |
| 474 | console.groupEnd() |
| 475 | }) |
| 476 | ) |
| 477 | ) |
| 478 | |
| 479 | /** |
| 480 | * Writes an informational message to the console, typically displayed with info |
nothing calls this directly
no test coverage detected