Skip to content
KCKingdoms Connected Scripting APIScripting guides and API
Global objectServer APIGenerated

Imports

const Imports: object

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

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.