Functions

f
printValueDetails(
repl: ReplContext,
argument: string
): Promise<string | null>

The whole of a value: a function's entire declaration, body included, or anything else rendered all the way down rather than summarised to a line. null where there is no such name. What .view prints.

f
summarizeValue(
repl: ReplContext,
argument: string
): Promise<string | null>

Enough to recognise a value by: where it is written, what was written above it, and its signature. null where this session knows nothing by that name. What .doc prints.

Usage

import * as mod from "lib/commands/repl/value-details.ts";