method ReplSession.typeOf
ReplSession.typeOf(expression: string): Promise<string>

What TypeScript would call the value an expression comes to — structural, from the value.

'' for anything that cannot be asked without running something, which is the same rule the right-margin preview follows: a prompt must not change the page to answer a question about it.

Parameters

expression: string

Return Type

Promise<string>

Usage

import { type ReplSession } from "lib/repl/session.ts";