interface Binding

What one name in an import statement binds, and where in the module it comes from.

Properties

name: string

The name it puts in scope.

from: string | null

The export it takes, 'default' for a default import, or null for the module itself.

Usage

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