Adding documentation

This commit is contained in:
Kræn Hansen 2018-06-20 16:07:07 +02:00
parent f16feec112
commit b4955b816d
1 changed files with 8 additions and 1 deletions

View File

@ -285,6 +285,14 @@ class Realm {
*/
compact() {}
/**
* 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() {}
/**
* Writes a compacted copy of the Realm to the given path.
*
@ -456,4 +464,3 @@ class Realm {
* any object of this type from inside the same Realm, and will always be _optional_
* (meaning it may also be assigned `null` or `undefined`).
*/