From 2d6360e1f2716d6a9ded8f985fb4eb02e445ce2e Mon Sep 17 00:00:00 2001 From: Ari Lazier Date: Mon, 21 Mar 2016 11:28:46 -0700 Subject: [PATCH] update docs --- docs/realm.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/realm.js b/docs/realm.js index 99727abe..53843f46 100644 --- a/docs/realm.js +++ b/docs/realm.js @@ -107,9 +107,11 @@ class Realm { * Get the current schema version of the Realm at the given path. * @param {string} path - The path to the file where the * Realm database is stored. + * @param {string} encryptionKey - Optional encryption key. + * @throws {Error} When passing an invalid or non-matching encryption key. * @returns {number} version of the schema, or `-1` if no Realm exists at `path`. */ -Realm.schemaVersion = function(path) {}; +Realm.schemaVersion = function(path, encryptionKey) {}; /** * The default path where to create and access the Realm file.