Exports
constExports:object
Defined in: client/api.d.ts:2060
Registration and lookup of cross-resource values through the global Exports object.
Type Declaration
Section titled “Type Declaration”get(
resourceName,exportName):unknown
Reads one registered export from another running resource; undeclared dependencies produce a warning.
Parameters
Section titled “Parameters”resourceName
Section titled “resourceName”string
Name of the running resource that owns the export.
exportName
Section titled “exportName”string
Registered export name.
Returns
Section titled “Returns”unknown
The exported value.
register()
Section titled “register()”register(
name,value):boolean
Registers a value from the calling resource for use by dependent resources.
Parameters
Section titled “Parameters”string
Export name, preferably declared in the current resource manifest.
unknown
JavaScript value or function retained by the current resource.
Returns
Section titled “Returns”boolean
True when the value was registered.
