MCPcopy Create free account
hub / github.com/effect-app/libs / group

Function group

repos/effect/packages/effect/src/Console.ts:341–358  ·  view source on GitHub ↗
(
  options?: { label?: string | undefined; collapsed?: boolean | undefined } | undefined
)

Source from the content-addressed store, hash-verified

339/**
340 * Displays an interactive tree of descendant XML or HTML elements, which is particularly useful for inspecting DOM elements in browser environments.
341 *
342 * **Example** (Inspecting XML-like data)
343 *
344 * ```ts import.meta.vitest
345 * import { Console, Effect } from "effect"
346 *
347 * const messages: Array<unknown> = []
348 * const testConsole: Console.Console = Object.assign(Object.create(console), {
349 * dirxml: (...args: ReadonlyArray<unknown>) => messages.push(...args)
350 * })
351 * const program = Effect.gen(function*() {
352 * yield* Console.dirxml("<user id=\"1\">Ada</user>")
353 * })
354 *
355 * Effect.runSync(Effect.provideService(program, Console.Console, testConsole))
356 * messages // => ["<user id=\"1\">Ada</user>"]
357 * ```
358 *
359 * @category accessors
360 * @since 2.0.0
361 */

Callers

nothing calls this directly

Calls 5

consoleWithFunction · 0.85
syncMethod · 0.80
groupCollapsedMethod · 0.80
groupMethod · 0.80
groupEndMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…