mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-12 15:24:18 +00:00
Added a TypeScript definition for computeSize
This commit is contained in:
parent
a01553ef25
commit
367133c53e
8
lib/index.d.ts
vendored
8
lib/index.d.ts
vendored
@ -732,6 +732,14 @@ declare class Realm {
|
||||
*/
|
||||
compact(): boolean;
|
||||
|
||||
/**
|
||||
* Computes the aggregated size of all objects and their history in the Realm.
|
||||
*
|
||||
* Note that this will traverse the Realm and might be expensive for large Realms.
|
||||
* @returns {number} the computed size in bytes.
|
||||
*/
|
||||
computeSize(): number;
|
||||
|
||||
/**
|
||||
* Write a copy to destination path
|
||||
* @param path destination path
|
||||
|
Loading…
x
Reference in New Issue
Block a user