Skip to content

Latest commit

 

History

History
51 lines (31 loc) · 1.06 KB

File metadata and controls

51 lines (31 loc) · 1.06 KB

Lenses API

addLens

addLens(pathToLibrary, lens) => Promise

Create a new Lens.

Param Type Description
pathToLibrary String The path to the Lens library file.
lens Object Optional object to override what the library specifies.

Returns a Bluebird Promise which resolves to the newly created Lens.

deleteLens

deleteLens(name) => Promise

Delete the specified Lens.

Param Type Description
name String The name of the Lens to delete.

ReturnsPromise | A promise which resolves to the deleted Lens.

getLens

getLens(name) => Promise

Retrieve the specified Lens.

Param Type Description
name String The name of the Lens to retrieve.

Returns a Bluebird Promise which resolves to the specified Lens.

getLenses

getLenses() => Promise

Retrieve all Lenses.

Returns a Bluebird Promise which resolves to an array of Lenses.