Skip to main content

Instance

Instance = object

Properties

PropertyTypeDescription

cleanup

() => void

clear

() => void

Clear output.

rerender

Ink["render"]

Replace previous root node with a new one or update props of the current root node.

unmount

Ink["unmount"]

Manually unmount the whole Ink app.

waitUntilExit

Ink["waitUntilExit"]

Returns a promise, which resolves when app is unmounted.