effect-io-ai

Package: effect
Module: TestConsole

TestConsole.TestConsole.Method

Represents a console method name that can be invoked on the TestConsole. This type includes all methods available on the Console interface.

When to use

Use to type the console method name recorded in a captured test console entry.

Example (Typing captured console methods)

import type { TestConsole } from "effect/testing"

const method: TestConsole.TestConsole.Method = "log"

console.log(method) // "log"

Signature

type Method = keyof Console.Console

Source

Since v4.0.0