Saver
Module provides methods that works with saver
save — returns saved data
Reduces each Block sequently and calls Block save
method. Returns Promise with data
This method has no arguments
Promise<OutputData>
|
Returns output data via Promise |
save(): Promise<OutputData>
See a «Saving data» chapter for usage example and output format information.
☝️
Note.
class MyTool {
constructor({data, api}){
this.api = api;
// ...
}
save() {
const savedData = this.api.saver.save(); // ...
}
// ... other methods
}