interface ImportStatement

An import statement typed at the prompt: what it reads, and what it binds.

Properties

specifier: string

The module it reads, exactly as written — a path, or a package name.

Every name it puts in scope. Empty for import './styles.css', which binds nothing.

Usage

import { type ImportStatement } from "lib/repl/input.ts";