diff --git a/index.d.ts b/index.d.ts index 2b76bd0..6ff68df 100644 --- a/index.d.ts +++ b/index.d.ts @@ -83,7 +83,7 @@ declare namespace Nedb { filename?: string; timestampData?: boolean; inMemoryOnly?: boolean; - nodeWebkitAppName?: boolean; + nodeWebkitAppName?: string; autoload?: boolean; onload?(error: Error | null): any; beforeDeserialization?(line: string): string; diff --git a/lib/persistence.js b/lib/persistence.js index 088c5cc..51b5050 100755 --- a/lib/persistence.js +++ b/lib/persistence.js @@ -16,8 +16,8 @@ class Persistence { /** * Create a new Persistence object for database options.db * @param {Datastore} options.db - * @param {Boolean} options.nodeWebkitAppName Optional, specify the name of your NW app if you want options.filename to be relative to the directory where - * Node Webkit stores application data such as cookies and local storage (the best place to store data in my opinion) + * @param {Number} [options.corruptAlertThreshold] Optional, threshold after which an alert is thrown if too much data is corrupt + * @param {string} [options.nodeWebkitAppName] Optional, specify the name of your NW app if you want options.filename to be relative to the directory where Node Webkit stores application data such as cookies and local storage (the best place to store data in my opinion) */ constructor (options) { this.db = options.db