The value to be written to the terminal.
A promise that resolves once the value is added to the terminal history.
// Writing a string value
const outputValue = 'Hello, world!';
await writeToTerminal(outputValue);
// Writing an object value
const outputValue = {
html: <div>Hello, world!</div>,
};
await writeToTerminal(outputValue);
Generated using TypeDoc
This function adds the provided value to the terminal history. If the value is a string, it is added directly. If the value is an object, the
html
property of the object is converted to a string usingsafeRenderToString
function before adding it to the history.