Skip to content
M2O Scripting APIScripting reference
Global objectClient APIGenerated

Exports

const Exports: object

Defined in: client/api.d.ts:2060

Registration and lookup of cross-resource values through the global Exports object.

get(resourceName, exportName): unknown

Reads one registered export from another running resource; undeclared dependencies produce a warning.

string

Name of the running resource that owns the export.

string

Registered export name.

unknown

The exported value.

register(name, value): boolean

Registers a value from the calling resource for use by dependent resources.

string

Export name, preferably declared in the current resource manifest.

unknown

JavaScript value or function retained by the current resource.

boolean

True when the value was registered.