Skip to content
M2O Scripting APIScripting reference
Global objectServer APIGenerated

Imports

const Imports: object

Defined in: server/api.d.ts:2643

Bulk access to values exported by another running resource through the global Imports object.

get(resourceName): Record<string, unknown>

Builds an object containing every currently registered export from another resource; undeclared dependencies produce a warning.

string

Name of the running resource whose exports should be read.

Record<string, unknown>

Object keyed by export name, or an empty object when the resource has no exports.