Skip to content

@jsvision/files / ExecHost

Interface: ExecHost

Defined in: files/src/dialog/error-dialog.ts:35

The minimal host a modal needs: an event loop that can run a view modally and a desktop to mount it into. The result of createApplication satisfies this. Because running a view modally does not mount it, callers add it to the desktop, run it, then remove it in a finally.

Properties

desktop

desktop: Pick<Desktop, "addWindow" | "removeWindow">

Defined in: files/src/dialog/error-dialog.ts:41

The desktop the modal is mounted into (added before, removed after).


i18n?

readonly optional i18n?: I18n

Defined in: files/src/dialog/error-dialog.ts:37

Translation service used for framework- and package-owned modal chrome.


loop

loop: Pick<EventLoop, "execView">

Defined in: files/src/dialog/error-dialog.ts:39

Runs a view modally, resolving to the command that closed it.