Saver

Module provides methods that works with saver

save — returns saved data

Save

Reduces each Block sequently and calls Block save method. Returns Promise with data

Parameters

This method has no arguments

Return value

Promise<OutputData> Returns output data via Promise
save(): Promise<OutputData>

See a «Saving data» chapter for usage example and output format information.

Example

class MyTool { constructor({data, api}){ this.api = api; // ... } save() { const savedData = this.api.saver.save(); // ... } // ... other methods }