diff --git a/dist/contracts/IOperation.d.ts b/dist/contracts/IOperation.d.ts index f42c4db..d737956 100644 --- a/dist/contracts/IOperation.d.ts +++ b/dist/contracts/IOperation.d.ts @@ -6,6 +6,11 @@ export default interface IOperation { * Fetch schema and a portion of data */ fetch(orientation?: FetchOrientation): Promise; + /** + * Resets `this.data` buffer. + * Needs to be called when working with massive data. + */ + flush(): void; /** * Request status of operation * diff --git a/lib/contracts/IOperation.ts b/lib/contracts/IOperation.ts index 9d2d7bc..723d5d1 100644 --- a/lib/contracts/IOperation.ts +++ b/lib/contracts/IOperation.ts @@ -8,6 +8,12 @@ export default interface IOperation { */ fetch(orientation?: FetchOrientation): Promise; + /** + * Resets `this.data` buffer. + * Needs to be called when working with massive data. + */ + flush(): void; + /** * Request status of operation *