Interface

IAssetLinkPluginLibraryProvisionHandle

IAssetLinkPluginLibraryProvisionHandle

An object which is passed into the method a plugin provides for providing a plugin library via IAssetLinkPluginHandle#provideLibrary.

View Source assetlink-plugin-api/src/IAssetLinkPluginLibraryProvisionHandle.js, line 3

Methods

# provides(libraryObject)

Specify the object for this plugin-provided library.

Usage

library.provides(libraryA);
Parameters:
Name Type Description
libraryObject Object | external:Promise

the library object to be exposed or a promise that resolves to it.

View Source assetlink-plugin-api/src/IAssetLinkPluginLibraryProvisionHandle.js, line 28

# version(rawLibraryVersion)

Specify the version for this plugin-provided library.

Usage

library.version('1.2.3');
Parameters:
Name Type Description
rawLibraryVersion String

the semantic version string of the library - defaults to '0.0.1-alpha.1' if this is not called.

View Source assetlink-plugin-api/src/IAssetLinkPluginLibraryProvisionHandle.js, line 11