Skip to content

@jsvision/web / MountAppOptions

Interface: MountAppOptions

Defined in: mount.ts:29

Options for mountApp.

Properties

app

readonly app: Application

Defined in: mount.ts:33

A composed @jsvision/ui application (its loop is wired to the terminal).


caps

readonly caps: CapabilityProfile

Defined in: mount.ts:35

The capability profile (build one with buildBrowserCaps).


createTerminal?

readonly optional createTerminal?: () => TerminalLike

Defined in: mount.ts:45

A factory used when term is omitted, e.g. () => { const t = new Terminal({…}); t.open(el); return t; }. Keeps the @xterm/xterm value-import in the caller's bundle.

Returns

TerminalLike


element

readonly element: HostElement

Defined in: mount.ts:31

The mount point the terminal lives in.


term?

readonly optional term?: TerminalLike

Defined in: mount.ts:40

A ready terminal to drive. A test passes an @xterm/headless Terminal; a browser app passes an opened @xterm/xterm one. Provide this or createTerminal.