exportAsImport
fun exportAsImport(moduleName: String, fieldName: String, instance: Instance, exportName: String): ImportFunction
Creates an ImportFunction that wraps an exported function from an instance, suitable for linking into another module's imports via the store.
Parameters
moduleName
the import module name to register under
fieldName
the import field name to register under
instance
the source instance that exports the function
exportName
the name of the export in the source instance