mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-18 17:47:32 +00:00
Update docs for Realm.open and Realm.openAsync (#1027)
* Update docs for Realm.open and Realm.openAsync * Update realm.js
This commit is contained in:
parent
26a0079135
commit
57414f641d
@ -75,6 +75,25 @@ class Realm {
|
|||||||
*/
|
*/
|
||||||
constructor(config) {}
|
constructor(config) {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Open a realm asynchronously with a promise. If the realm is synced, it will be fully
|
||||||
|
* synchronized before it is available.
|
||||||
|
* @param {Realm~Configuration} config
|
||||||
|
* @param {function(error, realm)} callback - will be called when the realm is ready.
|
||||||
|
* @returns {Promise} - a promise that will be resolved with the realm instance when it's available.
|
||||||
|
* @throws {Error} If anything in the provided `config` is invalid.
|
||||||
|
*/
|
||||||
|
static open(config) {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Open a realm asynchronously with a callback. If the realm is synced, it will be fully
|
||||||
|
* synchronized before it is available.
|
||||||
|
* @param {Realm~Configuration} config
|
||||||
|
* @param {function(error, realm)} callback - will be called when the realm is ready.
|
||||||
|
* @throws {Error} If anything in the provided `config` is invalid.
|
||||||
|
*/
|
||||||
|
static openAsync(config, callback) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Closes this Realm so it may be re-opened with a newer schema version.
|
* Closes this Realm so it may be re-opened with a newer schema version.
|
||||||
* All objects and collections from this Realm are no longer valid after calling this method.
|
* All objects and collections from this Realm are no longer valid after calling this method.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user