Skip to main content

Interface: ScriptHost

The QuestScript-owned global used to publish cross-Script callables.

Methods

export()

export<T>(callable, options?): T

Registers a callable as a Script Export during top-level Script Run. Registration fails after Script Run, for duplicate names, or for an anonymous callable without options.name. The exact callable is returned.

Type Parameters

T

T extends (...args) => any

Parameters

callable

T

Callable retained by this Script Run.

options?

ScriptExportOptions

Optional public name and descriptive metadata.

Returns

T